Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel spatie asigne role

$role->givePermissionTo($permission);
$permission->assignRole($role);
Source by spatie.be #
 
PREVIOUS NEXT
Tagged: #laravel #spatie #asigne #role
ADD COMMENT
Topic
Name
1+1 =