@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Acacha\AdminLTETemplateLaravel\Providers; |
4 | 4 | |
5 | -use Illuminate\Routing\Router; |
|
6 | -use Illuminate\Support\ServiceProvider; |
|
7 | -use Creativeorange\Gravatar\Facades\Gravatar; |
|
8 | 5 | use Acacha\AdminLTETemplateLaravel\Facades\AdminLTE; |
9 | -use Creativeorange\Gravatar\GravatarServiceProvider; |
|
10 | 6 | use Acacha\AdminLTETemplateLaravel\Http\Middleware\GuestUser; |
7 | +use Creativeorange\Gravatar\Facades\Gravatar; |
|
8 | +use Creativeorange\Gravatar\GravatarServiceProvider; |
|
9 | +use Illuminate\Routing\Router; |
|
10 | +use Illuminate\Support\ServiceProvider; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Class AdminLTETemplateServiceProvider. |
@@ -25,25 +25,25 @@ discard block |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | if ($this->app->runningInConsole()) { |
28 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTE::class]); |
|
29 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTEAlt::class]); |
|
30 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTESidebar::class]); |
|
31 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTESidebarAlt::class]); |
|
32 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeAdminUserSeeder::class]); |
|
33 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\AdminLTEAdmin::class]); |
|
34 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\AdminLTEAdminAlt::class]); |
|
35 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeView::class]); |
|
36 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\AdminLTEMenu::class]); |
|
37 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\AdminLTEMenuAlt::class]); |
|
38 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeRoute::class]); |
|
39 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeMenu::class]); |
|
40 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeV::class]); |
|
41 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeVC::class]); |
|
42 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeMVC::class]); |
|
43 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\Username::class]); |
|
28 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTE::class ]); |
|
29 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTEAlt::class ]); |
|
30 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTESidebar::class ]); |
|
31 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTESidebarAlt::class ]); |
|
32 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeAdminUserSeeder::class ]); |
|
33 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\AdminLTEAdmin::class ]); |
|
34 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\AdminLTEAdminAlt::class ]); |
|
35 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeView::class ]); |
|
36 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\AdminLTEMenu::class ]); |
|
37 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\AdminLTEMenuAlt::class ]); |
|
38 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeRoute::class ]); |
|
39 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeMenu::class ]); |
|
40 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeV::class ]); |
|
41 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeVC::class ]); |
|
42 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeMVC::class ]); |
|
43 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\Username::class ]); |
|
44 | 44 | } |
45 | 45 | |
46 | - $this->app->bind('AdminLTE', function () { |
|
46 | + $this->app->bind('AdminLTE', function() { |
|
47 | 47 | return new \Acacha\AdminLTETemplateLaravel\AdminLTE(); |
48 | 48 | }); |
49 | 49 | |
@@ -51,9 +51,9 @@ discard block |
||
51 | 51 | $this->registerGravatarServiceProvider(); |
52 | 52 | } |
53 | 53 | |
54 | - if (config('auth.providers.users.field', 'email') === 'username' && |
|
54 | + if (config('auth.providers.users.field', 'email') === 'username' && |
|
55 | 55 | config('adminlte.add_nullable_username', true)) { |
56 | - $this->loadMigrationsFrom(ADMINLTETEMPLATE_PATH .'/database/migrations/username_login'); |
|
56 | + $this->loadMigrationsFrom(ADMINLTETEMPLATE_PATH.'/database/migrations/username_login'); |
|
57 | 57 | } |
58 | 58 | } |
59 | 59 |
@@ -14,13 +14,13 @@ |
||
14 | 14 | */ |
15 | 15 | Auth::routes(); |
16 | 16 | |
17 | -Route::get('/', function () { |
|
17 | +Route::get('/', function() { |
|
18 | 18 | return view('welcome'); |
19 | 19 | }); |
20 | 20 | |
21 | -Route::get('/home', [HomeController::class, 'index']); |
|
21 | +Route::get('/home', [ HomeController::class, 'index' ]); |
|
22 | 22 | |
23 | -Route::group(['middleware' => 'auth'], function () { |
|
23 | +Route::group([ 'middleware' => 'auth' ], function() { |
|
24 | 24 | // Route::get('/link1', function () { |
25 | 25 | // // Uses Auth Middleware |
26 | 26 | // }); |