| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php namespace Arcanesoft\Auth\Seeds\Foundation; |
||
| 54 | private function getAdminUserAttributes() |
||
| 55 | { |
||
| 56 | $now = Carbon::now(); |
||
| 57 | $attributes = [ |
||
| 58 | 'username' => 'admin', |
||
| 59 | 'first_name' => 'Super', |
||
| 60 | 'last_name' => 'ADMIN', |
||
| 61 | 'email' => env('ADMIN_EMAIL', '[email protected]'), |
||
| 62 | 'password' => env('ADMIN_PASSWORD', 'password'), |
||
| 63 | 'is_admin' => true, |
||
| 64 | 'activated_at' => $now, |
||
| 65 | ]; |
||
| 66 | |||
| 67 | if (UserConfirmator::isEnabled()) |
||
| 68 | $attributes['confirmed_at'] = $now; |
||
| 69 | |||
| 70 | return $attributes; |
||
| 71 | } |
||
| 72 | } |
||
| 73 |