| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | public function run() |
||
| 46 | { |
||
| 47 | // Default Roles ---------------------------------------------------------------- |
||
| 48 | |||
| 49 | // give the super admin all the available permissions, while seeding |
||
| 50 | $this->createRoleAction->run('admin', 'Administrator')->givePermissionTo( |
||
| 51 | $this->listAllPermissionsTask->run()->pluck('name')->toArray() |
||
| 52 | ); |
||
| 53 | |||
| 54 | $this->createRoleAction->run('client', 'Normal User'); |
||
| 55 | |||
| 56 | // ... |
||
| 57 | |||
| 58 | } |
||
| 59 | } |
||
| 60 |