From 8b072fddcfcf4a8985143078a8f46b0d0a1de8c7 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 14 May 2016 17:25:56 -0700 Subject: [PATCH] Fixes middleware for locale --- app/Http/routes.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/app/Http/routes.php b/app/Http/routes.php index 1e3ee50420..6cd763b180 100755 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -687,7 +687,7 @@ Route::group([ 'prefix' => 'admin','middleware' => ['web','auth','authorize:admi | | */ -Route::group([ 'prefix' => 'account', 'middleware' => 'auth' ], function () { +Route::group([ 'prefix' => 'account', 'middleware' => ['web', 'auth']], function () { # Profile Route::get('profile', [ 'as' => 'profile', 'uses' => 'ProfileController@getIndex' ]); @@ -787,11 +787,10 @@ Route::group(['middleware' => ['web','auth','authorize:reports']], function () { | | */ -Route::group([ 'prefix' => 'setup' ], function () { +Route::group([ 'prefix' => 'setup', 'middleware' => 'web'], function () { Route::get( 'user', [ - 'middleware' => 'web', 'as' => 'setup.user', 'uses' => 'SettingsController@getSetupUser' ] ); @@ -799,7 +798,6 @@ Route::group([ 'prefix' => 'setup' ], function () { Route::post( 'user', [ - 'middleware' => 'web', 'as' => 'setup.user.save', 'uses' => 'SettingsController@postSaveFirstAdmin' ] ); @@ -808,7 +806,6 @@ Route::group([ 'prefix' => 'setup' ], function () { Route::get( 'migrate', [ - 'middleware' => 'web', 'as' => 'setup.migrate', 'uses' => 'SettingsController@getSetupMigrate' ] ); @@ -816,7 +813,6 @@ Route::group([ 'prefix' => 'setup' ], function () { Route::get( 'done', [ - 'middleware' => 'web', 'as' => 'setup.done', 'uses' => 'SettingsController@getSetupDone' ] ); @@ -824,7 +820,6 @@ Route::group([ 'prefix' => 'setup' ], function () { Route::get( 'mailtest', [ - 'middleware' => 'web', 'as' => 'setup.mailtest', 'uses' => 'SettingsController@ajaxTestEmail' ] ); @@ -833,7 +828,6 @@ Route::group([ 'prefix' => 'setup' ], function () { Route::get( '/', [ - 'middleware' => 'web', 'as' => 'setup', 'uses' => 'SettingsController@getSetupIndex' ] ); @@ -845,7 +839,7 @@ Route::get( '/', [ 'as' => 'home', - 'middleware' => 'auth', + 'middleware' => ['web', 'auth'], 'uses' => 'DashboardController@getIndex' ] );