title: Laravel middleware doesn't work
body: <p>I created my middleware, registered it in Kernel.php (middlewareGroups and in routeMiddleware arrays) but it does nothing.</p>
  
  <p>Kernel.php/middlewareGroups</p>
  
  <pre><code>'CheckAdmin' =&gt; [
      \App\Http\Middleware\CheckUserIfAdmin::class,
  ],
  </code></pre>
  
  <p>Kernel.php/routeMiddleware</p>
  
  <pre><code>'CheckAdmin' =&gt; \App\Http\Middleware\CheckUserIfAdmin::class,
  </code></pre>
  
  <p>web.php</p>
  
  <pre><code>Route::group(['middleware' =&gt; ['CheckAdmin']], function () {
      Route::get('/admin', [
          'uses' =&gt; 'AdminController@index',
          'as' =&gt; 'adminpage'
      ]);
  });
  </code></pre>
  
  <p>my Middleware:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Middleware;
  
  use Closure;
  
  class CheckUserIfAdmin
  {
      public function handle($request, Closure $next)
      {
          if(Session::has('ad_id') === false):
              return redirect()-&gt;route('admin.login');
          endif;
  
  
          return $next($request);
      }
  }
  </code></pre>