Support the ongoing development of →
Configuration Authentication Requests
Last updated 1 year ago.

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!


Your banner here too?

anonymox anonymox Joined 16 Oct 2016


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.