I've solved this problem by replacing
return redirect('/home');
with proper json response in RedirectIfAuthenticated.php file :
public function handle($request, Closure $next, $guard = null)
{
if (Auth::guard($guard)->check()) {
$json = [
'success' => true,
'code' => 200,
'message' => 'You are Logged in.',
];
return \Response::json($json,200);
}
return $next($request);
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community