title: Laravel- 'auth' middleware not work
body: <p>I use Laravel 5.6.33. I would like the user can have an access to the 'dashboard' page only when he/she has signed In/Up. When I use the 'guest' middleware, the user can't access the page at all and when I use the 'auth' middleware, the user always have an access to the page. What shall I do?</p>
  
  <pre><code>Route::group(['middleware' =&gt; ['web']], function (){
      Route::get('/dashboard', [
          'uses' =&gt; 'UserController@getDashboard',
          'as' =&gt; 'dashboard',
          'middleware' =&gt; 'auth'
      ]);
  });
  </code></pre>
  
  <p>I have also added <code>$this-&gt;middleware('auth');</code> in the <code>getDashboard</code> function or in the constructor of the <code>UserController</code> but it doesn't work. What shall I do?</p>
  
  <p>In the Kernel.php the <code>auth</code> address is as follows:</p>
  
  <pre><code> 'auth' =&gt; \Illuminate\Auth\Middleware\Authenticate::class,
  </code></pre>