| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php namespace Arcanesoft\Auth\Seeds\Foundation; |
||
| 38 | private function seedAdminUser() |
||
| 39 | { |
||
| 40 | tap(new User($this->getAdminUserAttributes()), function (User $admin) { |
||
| 41 | $admin->save(); |
||
| 42 | |||
| 43 | /** @var \Arcanesoft\Auth\Models\Role $adminRole */ |
||
| 44 | $adminRole = Role::admin()->first(); |
||
| 45 | $adminRole->attachUser($admin); |
||
| 46 | }); |
||
| 47 | } |
||
| 48 | |||
| 73 |