Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

gopi's avatar
Level 1

Laravel Login Encrypt and bcrypt method?

Am using a Php Registration page,but login page is La-ravel,is It possible to access the cross platform.While Saving i get the issues in Password encryption and Decryption method.Can Anyone Suggest me?

0 likes
1 reply
larafever's avatar

For registration use

bcrypt($your_password)// encrypt password for users

Then use

Auth::attempt(['username'=>$username,'password'=>$password]);
//Laravel automatically Hash check password for logins if you use the Auth::attempt(), and make sure your password column in your db is named password else this will not work
2 likes

Please or to participate in this conversation.