Answers for "update role spatie"

0

update role spatie

// All current roles will be removed from the user and replaced by the array given
$user->syncRoles(['writer', 'admin']);
Posted by: Guest on March-23-2021

Code answers related to "update role spatie"

Browse Popular Code Answers by Language