Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function handle() |
||
19 | { |
||
20 | $roleClass = app(RoleContract::class); |
||
21 | |||
22 | $role = $roleClass::findOrCreate($this->argument('name'), $this->argument('guard')); |
||
23 | |||
24 | $role->givePermissionTo($this->makePermissions($this->argument('permissions'))); |
||
25 | |||
26 | $this->info("Role `{$role->name}` created"); |
||
27 | } |
||
28 | |||
44 |