login with different password column name in database #44562
-
for some reason I had to deal with an old database table that contain users table. Password column is named as How can I login by using Auth::attempt([....]) When it comes to login. I already know that we can override email with public function username(){
return 'username';
} Is there any similar function to password? |
Beta Was this translation helpful? Give feedback.
Answered by
erikn69
Oct 12, 2022
Replies: 2 comments 1 reply
-
On user framework/src/Illuminate/Auth/Authenticatable.php Lines 49 to 52 in b9203fc |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
crynobone
-
in app/Models/user.php
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On user
framework/src/Illuminate/Auth/Authenticatable.php
Lines 49 to 52 in b9203fc