I have 2 types of user :
- Admin
- Not Admin
Admin
will get the full-access, where Not Admin
will only get the index.
Here are my routes
Route::get('users','UserController@index');
Route::get('users/create', array('as'=>'users.create', 'uses'=>'UserController@create'));
Route::post('users/store','UserController@store');
Route::get('users/{id}', array('before' =>'profile', 'uses'=>'UserController@show'));
Route::get('users/{id}/edit', 'UserController@edit');
Route::put('users/{id}/update', array('as'=>'users.update', 'uses'=>'UserController@update'));
Route::delete('users/{id}/destroy',array('as'=>'users.destroy', 'uses'=>'UserController@destroy'));
How do I make a restriction so that Admin
will get the full-access, where Not Admin
will only get the access to index.