Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

update role spatie

// All current roles will be removed from the user and replaced by the array given
$user->syncRoles(['writer', 'admin']);
 
PREVIOUS NEXT
Tagged: #update #role #spatie
ADD COMMENT
Topic
Name
8+7 =