[Vuejs]-Is it possible to get Laravel user data from Vue JS?

2👍

I think you may create an auth/check API call, like this:

protected function check()
{
    if(Auth::guard('api')->check()) {
        return Auth::guard('api')->user();
    }

    return ['success' => false];;
}

And then get current user with this call.

Leave a comment