| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 1 | public function handle() |
|
| 34 | { |
||
| 35 | 1 | if (! AdminUser::where('email', '[email protected]')->first()) { |
|
| 36 | 1 | AdminUser::create([ |
|
| 37 | 1 | 'email' => self::ADMIN_USER_EMAIL, |
|
| 38 | 1 | 'password' => \Hash::make(self::ADMIN_USER_PASSWORD), |
|
| 39 | ]); |
||
| 40 | } |
||
| 41 | |||
| 42 | 1 | $this->info('Generate data successfully!'); |
|
| 43 | 1 | } |
|
| 45 |