different login approach #45987
-
How can i make auth::attempt work or manually log the user with existing table and fields: table name: "login" instead of "users" What i have tried: $user = User::where('userid', $credentials['userid']) dd(Auth::check()); works but after refreshing it gives me null. any idea how to achieve this? thanks! P.S i searched and mostly its laravel ui and it is deprecated and breeze i think doesn't support what i am trying to achieve. I know i should not use md5 but that's one of the requirements to make this thing work. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Up! |
Beta Was this translation helpful? Give feedback.
-
No one answered so here's what i did, i am not sure if this is the standard way to do it but here you go: User model:
Login controller:
|
Beta Was this translation helpful? Give feedback.
No one answered so here's what i did, i am not sure if this is the standard way to do it but here you go:
User model:
Login controller: