title: Using middleware in laravel5.4
body: <p>Actually, i'm new to <code>laravel</code>. I'm trying to make Authenticating Users manually I have a problem that there's no middleware work anyone know what's the problem 
  it should redirect to the homepage but it doesn't ...</p>
  
  <p>here's for login</p>
  
  <pre><code>public function __construct(){
  
  
      $this-&gt;middleware('auth')-&gt;except(['index','show' ]);
  }
  </code></pre>
  
  <p>and that for posts</p>
  
  <pre><code>public function __constructor(){
      $this-&gt;middleware('guest')-&gt;except(['destroy' ]);
  }
  </code></pre>