[Vuejs]-Error: message: "Unauthenticated." in laravel and vue

0👍

If you’re mentioning the middleware RedirectIfAuthenticated then can you try this

public function handle(Request $request, Closure $next)
    {
        if(Auth::check() && Auth::user()->role == 'customer')
        {
            return redirect ('/home');
        }else{
            abort(403);
        }
    }

Leave a comment