Do what jimgwhit said. Larval encrypts the password going into the User table using the bcrypt('password') helper function. You can also use the Facade Hash::make('password')
jimgwhit said:
Consider adding a role field to your users table.
Thanks for your reply, I already added column called "type". Is there any advantage using column called "role" like "created_at" & "updated_at" ?
LukeBro said:
Do what jimgwhit said. Larval encrypts the password going into the User table using the bcrypt('password') helper function. You can also use the Facade Hash::make('password')
Thanks for your reply. I just use bcrypt('password') for change password option in edit profile option. :)
Thank you both
No problem, to answer your first question no there is no benefit to calling it role rather than type. That's completely up to you.
Luke
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community