From 223191a9b01d779d238e2cca5e49a83c2cb550ef Mon Sep 17 00:00:00 2001 From: Martin Bean Date: Thu, 19 Nov 2015 23:01:29 +0000 Subject: [PATCH] Change redirect when authenticated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The route /home doesn’t exist in a default Laravel application, whereas / does. --- app/Http/Middleware/RedirectIfAuthenticated.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index 495b629cbed..c85f9e508c7 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -35,7 +35,7 @@ public function __construct(Guard $auth) public function handle($request, Closure $next) { if ($this->auth->check()) { - return redirect('/home'); + return redirect('/'); } return $next($request);