Laravel 4: How to protect group routes admins and users? <p>Good day! Please tell me how to split the routes users and administrators? To authorize the user got to your home page and could move only to the right routes and the admin came on your web page and could see only their routes. My file routes.php</p> <pre><code>Route::get('/', array( 'as' =&gt; 'home', 'uses' =&gt; 'HomeController@home' )); Route::group(array('before' =&gt; 'auth'), function(){ Route::group(array('before' =&gt; 'csrf'), function(){ Route::post('/account/change-password', array( 'as' =&gt; 'account-change-password-post', 'uses' =&gt; 'AccountController@postChangePassword' )); }); Route::get('/account/change-password', array( 'as' =&gt; 'account-change-password', 'uses' =&gt; 'AccountController@getChangePassword' )); Route::get('/user/{username}', array( 'as' =&gt; 'profile-user', 'uses' =&gt; 'ProfileController@user' )); Route::get('/account/sign-out', array( 'as' =&gt; 'account-sign-out', 'uses' =&gt; 'AccountController@getSignOut' )); }); Route::group(array('before' =&gt; 'admin'), function(){ Route::get('/dashboard', array( 'as' =&gt; 'dashboard', 'uses' =&gt; 'TiketsController@dashboard' )); Route::get('/tiket-new', array( 'as' =&gt; 'tiket-new', 'uses' =&gt; 'TiketsController@tiketNew' )); Route::get('/tiket-work', array( 'as' =&gt; 'tiket-work', 'uses' =&gt; 'TiketsController@tiketWork' )); Route::get('/tiket-complete', array( 'as' =&gt; 'tiket-complete', 'uses' =&gt; 'TiketsController@tiketComplete' )); Route::get('/tiket-arhive', array( 'as' =&gt; 'tiket-arhive', 'uses' =&gt; 'TiketsController@tiketArhive' )); }); Route::group(array('before' =&gt; 'user'), function(){ Route::get('/user-dashboard', array( 'as' =&gt; 'user-dashboard', 'uses' =&gt; 'TiketsController@userDashboard' )); }); </code></pre> <p>My AccountController.php</p> <pre><code>public function postSignIn(){ $validator = Validator::make(Input::all(), array( 'email' =&gt; 'required|email', 'password' =&gt; 'required' )); if($validator-&gt;fails()){ return Redirect::route('account-sign-in') -&gt;withErrors($validator) -&gt;withInput(); } else { $remember = (Input::has('remember')) ? true : false; $auth = Auth::attempt(array( 'email' =&gt; Input::get('email'), 'password' =&gt; Input::get('password'), 'active' =&gt; 1 ), $remember); if($auth){ if (Auth::user()-&gt;role==5) { return Redirect::intended('/dashboard'); } if (Auth::user()-&gt;role==1) { return Redirect::intended('/user-dashboard'); } } else { return Redirect::route('account-sign-in') -&gt;with('global', 'Error'); } } </code></pre> <p>Unfortunately, when such routes admins and users can see the pages of each other. Please tell me as much detail as possible, how to distinguish between different groups of users?</p>