Support the ongoing development of Laravel.io →
Authentication Security Forms
Last updated 2 years ago.
0

Consider adding a role field to your users table.

0

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')

0

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

Last updated 9 years ago.
0

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

cagline cagline Joined 16 May 2015

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.