@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Acacha\AdminLTETemplateLaravel\Console; |
4 | 4 | |
5 | -use Illuminate\Console\Command; |
|
6 | 5 | use App\Models\User; |
6 | +use Illuminate\Console\Command; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Class AdminLTEAdmin. |
@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | public function handle() |
31 | 31 | { |
32 | 32 | $this->createAdminUser(); |
33 | - $this->info('User ' . $this->username() . '(' . $this->email() . ') ' . |
|
34 | - $this->passwordInfo() . ' created succesfully!'); |
|
33 | + $this->info('User '.$this->username().'('.$this->email().') '. |
|
34 | + $this->passwordInfo().' created succesfully!'); |
|
35 | 35 | $this->call('make:adminUserSeeder'); |
36 | 36 | $this->info('A database seed has been created to permanently add admin user to database.'); |
37 | 37 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | User::factory()->create([ |
46 | 46 | "name" => env('ADMIN_USER', $this->username()), |
47 | 47 | "email" => env('ADMIN_EMAIL', $this->email()), |
48 | - "password" => bcrypt(env('ADMIN_PWD', '123456'))]); |
|
48 | + "password" => bcrypt(env('ADMIN_PWD', '123456')) ]); |
|
49 | 49 | } catch (\Illuminate\Database\QueryException $exception) { |
50 | 50 | } |
51 | 51 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use Illuminate\Database\Seeder; |
|
4 | 3 | use App\Models\User; |
4 | +use Illuminate\Database\Seeder; |
|
5 | 5 | |
6 | 6 | /** |
7 | 7 | * Class AdminUserSeeder |
@@ -19,7 +19,7 @@ |
||
19 | 19 | User::factory()->create([ |
20 | 20 | "name" => env('ADMIN_USER', "$USER_NAME$"), |
21 | 21 | "email" => env('ADMIN_EMAIL', "$USER_EMAIL"), |
22 | - "password" => bcrypt(env('ADMIN_PWD', '123456'))]); |
|
22 | + "password" => bcrypt(env('ADMIN_PWD', '123456')) ]); |
|
23 | 23 | } catch (\Illuminate\Database\QueryException $exception) { |
24 | 24 | } |
25 | 25 | } |
@@ -5,6 +5,6 @@ |
||
5 | 5 | * but take into account we have to add 'web' middleware group here because Laravel by defaults add this middleware in |
6 | 6 | * RouteServiceProvider |
7 | 7 | */ |
8 | -Route::group(['middleware' => 'web'], function () { |
|
8 | +Route::group([ 'middleware' => 'web' ], function() { |
|
9 | 9 | Route::get('/home', 'HomeController@index'); |
10 | 10 | }); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | { |
65 | 65 | try { |
66 | 66 | $this->filesystem->overwrite( |
67 | - $path = database_path('seeders/' . config('AdminUserSeeder', 'AdminUserSeeder.php')), |
|
67 | + $path = database_path('seeders/'.config('AdminUserSeeder', 'AdminUserSeeder.php')), |
|
68 | 68 | $this->compiler->compile( |
69 | 69 | $this->filesystem->get($this->getStubPath()), |
70 | 70 | [ |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | ] |
74 | 74 | ) |
75 | 75 | ); |
76 | - $this->info('File ' . $path . ' created'); |
|
76 | + $this->info('File '.$path.' created'); |
|
77 | 77 | } catch (\Exception $e) { |
78 | 78 | print_r($e->getMessage()); |
79 | 79 | } |
@@ -86,6 +86,6 @@ discard block |
||
86 | 86 | */ |
87 | 87 | protected function getStubPath() |
88 | 88 | { |
89 | - return __DIR__ . '/stubs/AdminUserSeeder.php'; |
|
89 | + return __DIR__.'/stubs/AdminUserSeeder.php'; |
|
90 | 90 | } |
91 | 91 | } |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Http\Controllers\Auth; |
4 | 4 | |
5 | -use App\Models\User; |
|
6 | -use Validator; |
|
7 | 5 | use App\Http\Controllers\Controller; |
6 | +use App\Models\User; |
|
8 | 7 | use Illuminate\Foundation\Auth\RegistersUsers; |
8 | +use Validator; |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Class RegisterController |