title: Laravel Route::group for Admins
body: <p>I would like to authentificate some routes, if the user is admin.</p>
  
  <pre><code>Route::get( '/user/{data}', 'UserController@getData' );
  Route::post( '/user/{data}', 'UserController@postData' );
  </code></pre>
  
  <p>Now, I made it inside the Controller:</p>
  
  <pre><code>public function getData( $data = 'one' )
  {
      if ( Auth::user()-&gt;permission == 'admin' ) {
          //...
      } else {
          //...
      }
  }
  
  public function postData( Request $request, $data = 'one' )
  {
      if ( Auth::user()-&gt;permission == 'admin' ) {
          //...
      } else {
          //...
      }
  }
  </code></pre>
  
  <p>I would like to make it with Route::group, but how can I do that in the routes.php?</p>