Last active
September 28, 2016 20:33
-
-
Save nissicreative/7355f937e7234c97b6b0beb9a352b217 to your computer and use it in GitHub Desktop.
Laravel Administrator Routes
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
| /* | |
| |-------------------------------------------------------------------------- | |
| | Administrator Routes | |
| |-------------------------------------------------------------------------- | |
| */ | |
| Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'admin']], function () { | |
| // AdminController | |
| Route::get('/', 'AdminController@dashboard')->name('admin.dashboard'); | |
| Route::get('account', 'AdminController@getAccount')->name('admin.account'); | |
| Route::post('account', 'AdminController@postAccount')->name('admin.account.update'); | |
| // Resourceful Routes | |
| Route::resource('users', 'UsersController'); | |
| }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment