@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::table('users', function (Blueprint $table) { |
|
| 16 | + Schema::table('users', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('username')->unique()->nullable(); |
| 18 | 18 | }); |
| 19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function down() |
| 27 | 27 | { |
| 28 | - Schema::table('users', function (Blueprint $table) { |
|
| 28 | + Schema::table('users', function(Blueprint $table) { |
|
| 29 | 29 | $table->dropColumn('username'); |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -26,25 +26,25 @@ discard block |
||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | if ($this->app->runningInConsole()) { |
| 29 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTE::class]); |
|
| 30 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTEAlt::class]); |
|
| 31 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTESidebar::class]); |
|
| 32 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTESidebarAlt::class]); |
|
| 33 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeAdminUserSeeder::class]); |
|
| 34 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\AdminLTEAdmin::class]); |
|
| 35 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\AdminLTEAdminAlt::class]); |
|
| 36 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeView::class]); |
|
| 37 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\AdminLTEMenu::class]); |
|
| 38 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\AdminLTEMenuAlt::class]); |
|
| 39 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeRoute::class]); |
|
| 40 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeMenu::class]); |
|
| 41 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeV::class]); |
|
| 42 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeVC::class]); |
|
| 43 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\MakeMVC::class]); |
|
| 44 | - $this->commands([\Acacha\AdminLTETemplateLaravel\Console\Username::class]); |
|
| 29 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTE::class ]); |
|
| 30 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTEAlt::class ]); |
|
| 31 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTESidebar::class ]); |
|
| 32 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\PublishAdminLTESidebarAlt::class ]); |
|
| 33 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeAdminUserSeeder::class ]); |
|
| 34 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\AdminLTEAdmin::class ]); |
|
| 35 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\AdminLTEAdminAlt::class ]); |
|
| 36 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeView::class ]); |
|
| 37 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\AdminLTEMenu::class ]); |
|
| 38 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\AdminLTEMenuAlt::class ]); |
|
| 39 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeRoute::class ]); |
|
| 40 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeMenu::class ]); |
|
| 41 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeV::class ]); |
|
| 42 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeVC::class ]); |
|
| 43 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\MakeMVC::class ]); |
|
| 44 | + $this->commands([ \Acacha\AdminLTETemplateLaravel\Console\Username::class ]); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - $this->app->bind('AdminLTE', function () { |
|
| 47 | + $this->app->bind('AdminLTE', function() { |
|
| 48 | 48 | return new \Acacha\AdminLTETemplateLaravel\AdminLTE(); |
| 49 | 49 | }); |
| 50 | 50 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $this->registerGuestUserProvider(); |
| 57 | 57 | } |
| 58 | 58 | if (config('auth.providers.users.field', 'email') === 'username') { |
| 59 | - $this->loadMigrationsFrom(ADMINLTETEMPLATE_PATH .'/database/migrations/username_login'); |
|
| 59 | + $this->loadMigrationsFrom(ADMINLTETEMPLATE_PATH.'/database/migrations/username_login'); |
|
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | if (!$this->app->routesAreCached()) { |
| 111 | 111 | $router = app('router'); |
| 112 | 112 | |
| 113 | - $router->group(['namespace' => $this->getAppNamespace().'Http\Controllers'], function () { |
|
| 113 | + $router->group([ 'namespace' => $this->getAppNamespace().'Http\Controllers' ], function() { |
|
| 114 | 114 | require __DIR__.'/../Http/routes.php'; |
| 115 | 115 | }); |
| 116 | 116 | } |
@@ -10,23 +10,23 @@ |
||
| 10 | 10 | // ->url('http://www.google.com', 'Google'); |
| 11 | 11 | //}); |
| 12 | 12 | |
| 13 | -Menu::macro('adminlteSubmenu', function ($submenuName) { |
|
| 14 | - return Menu::new()->prepend('<a href="#"><span> ' . $submenuName . '</span> <i class="fa fa-angle-left pull-right"></i></a>') |
|
| 13 | +Menu::macro('adminlteSubmenu', function($submenuName) { |
|
| 14 | + return Menu::new()->prepend('<a href="#"><span> '.$submenuName.'</span> <i class="fa fa-angle-left pull-right"></i></a>') |
|
| 15 | 15 | ->addParentClass('treeview')->addClass('treeview-menu'); |
| 16 | 16 | }); |
| 17 | -Menu::macro('adminlteMenu', function () { |
|
| 17 | +Menu::macro('adminlteMenu', function() { |
|
| 18 | 18 | return Menu::new() |
| 19 | 19 | ->addClass('sidebar-menu'); |
| 20 | 20 | }); |
| 21 | -Menu::macro('adminlteSeparator', function ($title) { |
|
| 21 | +Menu::macro('adminlteSeparator', function($title) { |
|
| 22 | 22 | return Html::raw($title)->addParentClass('header'); |
| 23 | 23 | }); |
| 24 | 24 | |
| 25 | -Menu::macro('adminlteDefaultMenu', function ($content) { |
|
| 26 | - return Html::raw('<i class="fa fa-link"></i><span>' . $content . '</span>')->html(); |
|
| 25 | +Menu::macro('adminlteDefaultMenu', function($content) { |
|
| 26 | + return Html::raw('<i class="fa fa-link"></i><span>'.$content.'</span>')->html(); |
|
| 27 | 27 | }); |
| 28 | 28 | |
| 29 | -Menu::macro('sidebar', function () { |
|
| 29 | +Menu::macro('sidebar', function() { |
|
| 30 | 30 | return Menu::adminlteMenu() |
| 31 | 31 | ->add(Html::raw('HEADER')->addParentClass('header')) |
| 32 | 32 | ->action('HomeController@index', '<i class="fa fa-home"></i><span>Home</span>') |
@@ -13,11 +13,11 @@ |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -Route::middleware('auth:api')->get('/user', function (Request $request) { |
|
| 16 | +Route::middleware('auth:api')->get('/user', function(Request $request) { |
|
| 17 | 17 | return $request->user(); |
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | -Route::group(['prefix' => 'v1','middleware' => 'auth:api'], function () { |
|
| 20 | +Route::group([ 'prefix' => 'v1', 'middleware' => 'auth:api' ], function() { |
|
| 21 | 21 | // Route::resource('task', 'TasksController'); |
| 22 | 22 | |
| 23 | 23 | //Please do not remove this if you want adminlte:route and adminlte:link commands to works correctly. |