Support the ongoing development of Laravel.io →
Authentication Eloquent Packages
Last updated 1 year ago.
0

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!

Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

matejMurin matejmurin Joined 28 Jul 2016

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.