Last active
August 29, 2015 14:13
-
-
Save shinigamicorei7/c18a1b9590ef37f07160 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::group(['prefix' => 'user'], function () { | |
Route::get('login', ['as' => 'login-user', 'uses' => 'AuthController@loginAdmin']); | |
Route::post('login', ['as' => 'login-user-post', 'uses' => 'AuthController@authAdmin'])->before('csrf'); | |
Route::get('dashboard', ['as' => 'dashboard-user', 'uses' => 'UserController@dashboard']); | |
}); | |
Route::group(['prefix' => 'admsis'], function () { | |
Route::get('login', ['as' => 'login-admin', 'uses' => 'AuthController@loginAdmin']); | |
Route::post('login', ['as' => 'login-admin-post', 'uses' => 'AuthController@authAdmin'])->before('csrf'); | |
Route::get('dashboard', ['as' => 'dashboard-admin', 'uses' => 'AdminController@dashboard']); | |
}); | |
Route::whenRegex('/^admsis(\/(?!login)\S+)?$/', 'auth:admsis'); | |
Route::whenRegex('/^user(\/(?!login)\S+)?$/', 'auth:user'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment