@@ 50-54 (lines=5) @@ | ||
47 | ||
48 | $authModel::unguard(); |
|
49 | ||
50 | if ((new $authModel())->create(['name' => $name, 'email' => $email, 'password' => bcrypt($password), 'is_admin' => true])) { |
|
51 | $this->info('All done!'); |
|
52 | ||
53 | return; |
|
54 | } |
|
55 | ||
56 | $authModel::reguard(); |
|
57 |
@@ 48-52 (lines=5) @@ | ||
45 | return; |
|
46 | } |
|
47 | ||
48 | if ((new $authModel())->create(['name' => $name, 'email' => $email, 'password' => bcrypt($password)])) { |
|
49 | $this->info('All done!'); |
|
50 | ||
51 | return; |
|
52 | } |
|
53 | ||
54 | $this->error('Something went wrong... Please try again.'); |
|
55 | } |