Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

create role spatie

// Create a role or permission if necessary
use SpatiePermissionModelsRole;
use SpatiePermissionModelsPermission;

$role = Role::create(['name' => 'writer']);
$permission = Permission::create(['name' => 'edit articles']);
Source by spatie.be #
 
PREVIOUS NEXT
Tagged: #create #role #spatie
ADD COMMENT
Topic
Name
4+6 =