Support the ongoing development of →
Input Forms Validation
Last updated 1 year ago.

For you first question, again you can use mutators:

public function setPasswordAttribute($value){
   $this->attributes['password'] = md5($value);

and your second Q, laravel by default ships with a User model in your app/ directory. this model use some useful classes for authenticating, password reset and so on. By default laravel put a migration in your database/migrations directory. If you decide to don't use laravel default User you can remove the migration, and then migrate.


You should probably move away from md5 (you could use the laravel hash methods) -


Sign in to participate in this thread!


Your banner here too?

DCHN04 dchn04 Joined 4 Oct 2016


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.