@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | // 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. |
| 4 | -Route::group(['middleware' => 'web', 'prefix' => 'admin'], function () { |
|
| 4 | +Route::group(['middleware' => 'web', 'prefix' => 'admin'], function() { |
|
| 5 | 5 | // Admin authentication routes |
| 6 | 6 | Route::auth(); |
| 7 | 7 | |
@@ -12,6 +12,6 @@ discard block |
||
| 12 | 12 | // REDIRECT "login" URL TO "admin/login" |
| 13 | 13 | // |
| 14 | 14 | // The login url is hardcoded in Laravel in a few places, most importantly in the auth middleware. If your application has a different login for users (non-admins), you should consider overwriting this. |
| 15 | -Route::get('login', function () { |
|
| 15 | +Route::get('login', function() { |
|
| 16 | 16 | return redirect('admin/login'); |
| 17 | 17 | }); |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | public function setupRoutes(Router $router) |
| 62 | 62 | { |
| 63 | - $router->group(['namespace' => 'Backpack\Base\app\Http\Controllers'], function ($router) { |
|
| 63 | + $router->group(['namespace' => 'Backpack\Base\app\Http\Controllers'], function($router) { |
|
| 64 | 64 | require __DIR__.'/app/Http/routes.php'; |
| 65 | 65 | }); |
| 66 | 66 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | private function registerBase() |
| 84 | 84 | { |
| 85 | - $this->app->bind('base', function ($app) { |
|
| 85 | + $this->app->bind('base', function($app) { |
|
| 86 | 86 | return new Base($app); |
| 87 | 87 | }); |
| 88 | 88 | } |