title: InvalidArgumentException in Response.php line 458: The HTTP status code "1" is not valid
body: <p>I am trying to make routing to admin panel but need to be admin field = 1 otherwise redirect to the login page, I made middleware IsUserAdmin and my code in the kernel:</p>
  
  <pre><code>'web' =&gt; [
          \App\Http\Middleware\EncryptCookies::class,
          \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
          \Illuminate\Session\Middleware\StartSession::class,
          \Illuminate\View\Middleware\ShareErrorsFromSession::class,
          \App\Http\Middleware\VerifyCsrfToken::class,
      ],
  
      'admin'=&gt; [
          \App\Http\Middleware\Authenticate::class,
          \App\Http\Middleware\IsUserAdmin::class,
      ],
  </code></pre>
  
  <p>and middleware:</p>
  
  <pre><code>public function handle($request, Closure $next)
  {
      if(Auth::user()-&gt;admin != 1)
      {
          $umra = package_model::where('package_type','=','1')-&gt;orderby('id','desc')-&gt;skip(0)-&gt;take(6)-&gt;get();
          $tours = package_model::where('package_type','=','1')-&gt;orderby('id','desc')-&gt;skip(0)-&gt;take(5)-&gt;get();
  
          $last_tour = package_model::where('package_type','=','2')-&gt;orderby('id','desc')-&gt;skip(0)-&gt;take(1)-&gt;get();
          $last_tours = package_model::where('package_type','=','3')-&gt;orderby('id','desc')-&gt;skip(0)-&gt;take(4)-&gt;get();
  
          $all_package = package_model::orderby('id','desc')-&gt;skip(0)-&gt;take(15)-&gt;get();
          $allKey = keywords_model::orderby('id','desc')-&gt;get();
          $categories = category_model::where('parent_id','=','0')-&gt;orderby('id','asc')-&gt;skip(0)-&gt;take(5)-&gt;get();
  
          return redirect('login', ['umra'=&gt;$umra,'tours'=&gt;$tours,'last_tour'=&gt;$last_tour,'last_tours'=&gt;$last_tours,'all_package'=&gt;$all_package,'allKey'=&gt;$allKey,'categories'=&gt;$categories]);
      }
      return $next($request);
  }
  </code></pre>
  
  <p>and route</p>
  
  <pre><code>Route::group(['middleware' =&gt; ['web','admin']], function (){
  Route::get('/adminpanel', 'Admincontroller@index');
  Route::get('/adminpanel/users', 'UsersController@index');
  Route::get('/adminpanel/addpackage', 'Admincontroller@addnew');
  </code></pre>
  
  <p>});</p>
  
  <pre><code> InvalidArgumentException in Response.php line 458: The HTTP status code "1" is not valid.
  </code></pre>