title: Restricting routes with auth middleware group in laravel 5.2
body: <p>I'm trying to prevent people from accessing the <code>/dashboard</code> route unless they're authenticated(logged in). I looked at the laravel docs and here's what I thought I was supposed to do to accomplish this.</p>
  
  <pre><code>Route::group(['middleware' =&gt; 'auth'], function (){
      Route::get('/dashboard', [
          'uses' =&gt; 'UserController@getDashboard',
          'as' =&gt; 'dashboard'
      ]);
  });
  </code></pre>