JWTAuth is token base login system whereas Auth is basic authentication system.
As JWTAuth require token, you can pass token in user object like:
$user = User::find($user_id);
JWTAuth::fromUser($user);
Get more idea for create token Hope this works!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community