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

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.

0

You should probably move away from md5 (you could use the laravel hash methods) - https://laravel.com/docs/5.3/hashing

0

Sign in to participate in this thread!

Eventy

Your banner here too?

DCHN04 dchn04 Joined 4 Oct 2016

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.