| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Anomaly\UsersModule\Seeder; |
||
| 37 | public function run() |
||
| 38 | { |
||
| 39 | $this->roles->truncate(); |
||
| 40 | |||
| 41 | $this->roles->create( |
||
| 42 | [ |
||
| 43 | 'en' => [ |
||
| 44 | 'name' => 'Admin', |
||
| 45 | 'description' => 'The super admin role.' |
||
| 46 | ], |
||
| 47 | 'slug' => 'admin' |
||
| 48 | ] |
||
| 49 | ); |
||
| 50 | |||
| 51 | $this->roles->create( |
||
| 52 | [ |
||
| 53 | 'en' => [ |
||
| 54 | 'name' => 'User', |
||
| 55 | 'description' => 'The default user role.' |
||
| 56 | ], |
||
| 57 | 'slug' => 'user' |
||
| 58 | ] |
||
| 59 | ); |
||
| 60 | } |
||
| 61 | } |
||
| 62 |