@@ -64,15 +64,15 @@ discard block |
||
64 | 64 | // register the 'admin' middleware |
65 | 65 | $router->middleware('admin', app\Http\Middleware\Admin::class); |
66 | 66 | |
67 | - $router->group(['namespace' => 'Backpack\Base\app\Http\Controllers'], function ($router) { |
|
67 | + $router->group(['namespace' => 'Backpack\Base\app\Http\Controllers'], function($router) { |
|
68 | 68 | // All BackPack routes are placed under the 'admin' prefix, to minimize possible conflicts with your application. This means your login/logout/register urls are also under the 'admin' prefix, so you can have separate logins for users and admins. |
69 | - Route::group(['middleware' => 'web', 'prefix' => 'admin'], function () { |
|
69 | + Route::group(['middleware' => 'web', 'prefix' => 'admin'], function() { |
|
70 | 70 | // Admin authentication routes |
71 | 71 | Route::auth(); |
72 | 72 | |
73 | 73 | // Other Backpack\Base routes |
74 | 74 | Route::get('dashboard', 'AdminController@dashboard'); |
75 | - Route::get('/', function () { |
|
75 | + Route::get('/', function() { |
|
76 | 76 | // The '/admin' route is not to be used as a page, because it breaks the menu's active state. |
77 | 77 | return redirect('admin/dashboard'); |
78 | 78 | }); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | */ |
88 | 88 | public function register() |
89 | 89 | { |
90 | - $this->app->bind('base', function ($app) { |
|
90 | + $this->app->bind('base', function($app) { |
|
91 | 91 | return new Base($app); |
92 | 92 | }); |
93 | 93 | } |