Change redirect when authenticated
The route /home doesn’t exist in a default Laravel application, whereas / does.
This commit is contained in:
parent
8476df5c9e
commit
223191a9b0
|
@ -35,7 +35,7 @@ public function __construct(Guard $auth)
|
||||||
public function handle($request, Closure $next)
|
public function handle($request, Closure $next)
|
||||||
{
|
{
|
||||||
if ($this->auth->check()) {
|
if ($this->auth->check()) {
|
||||||
return redirect('/home');
|
return redirect('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
|
|
Loading…
Reference in New Issue