title: Add Multiple Middleware to Laravel Project
body: <p>I'm new to laravel I have created middleware for my each role but when I add it to my route it won't work.</p>
  <p>If I add single middleware to my route it works fine but when I add second and third one It will not work.</p>
  <p>It won't shows the route to authorized <code>user</code> it redirect it to home,</p>
  <p>My User Model:</p>
  <pre><code>public function IsAdmin()
  {
      if($this-&gt;role_id =='1')
      {
          return true;
      }
      else
      {
          return false;
      }
  }
  
  public function IsManager()
  {
      if($this-&gt;role_id =='2')
      {
          return true;
      }
      else
      {
          return false;
      }
  }
  
  public function IsUser()
  {
      if($this-&gt;role_id =='3')
      {
          return true;
      }
      else
      {
          return false;
      }
  }
  </code></pre>
  <p>My Kernal:</p>
  <pre><code>'IsAdmin' =&gt; \App\Http\Middleware\IsAdmin::class,
  'IsManager' =&gt; \App\Http\Middleware\IsManager::class,
  'IsUser' =&gt; \App\Http\Middleware\IsUser::class,
  </code></pre>
  <p>My IsAdmin Middlewares:</p>
  <pre><code>public function handle($request, Closure $next)
  {
      $user =Auth::User();
      if(!$user-&gt;IsAdmin())
      {
          return redirect('stock');
      }
      return $next($request);
  }
  </code></pre>
  <p>My IsManager</p>
  <pre><code>public function handle($request, Closure $next)
  {
      $user =Auth::User();
      if(!$user-&gt;IsManager())
      {
          return redirect('stock');
      }
      return $next($request);
  }
  </code></pre>
  <p>and IsUser</p>
  <pre><code>public function handle($request, Closure $next)
  {
      $user =Auth::User();
      if(!$user-&gt;IsUser())
      {
          return redirect('stock');
      }
      return $next($request);
  }
  </code></pre>
  <p>and finally my Route</p>
  <pre><code>Route::get('approv',['middleware'=&gt;['IsManager','IsAdmin'],function(){
      return view('approv');
  }]);
  </code></pre>