title: This page isn’t working127.0.0.1 redirected you too many times
body: <p><strong>web.php</strong></p>
  <pre><code>Route::view('/','home');
  Route::view('login','login');
  </code></pre>
  <p><strong>Globalmiddleware.php</strong></p>
  <pre><code>public function handle($request, Closure $next)
  {
      if(true) return redirect('login');
      else return $next($request);
  }
  </code></pre>
  <blockquote>
  <p>i'm redirecting default page to login page but i got some strange result which shows login page isn't working</p>
  </blockquote>
  <pre><code>This page isn’t working
  127.0.0.1 redirected you too many times.
  Try clearing your cookies.
  ERR_TOO_MANY_REDIRECTS
  </code></pre>
  <blockquote>
  <p>remember i have login and home views</p>
  </blockquote>