BF laravel 9
This commit is contained in:
parent
a8fdfa3263
commit
48c3a87308
|
|
@ -42,6 +42,16 @@ class User extends Authenticatable
|
||||||
*/
|
*/
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
'email_verified_at' => 'datetime',
|
'email_verified_at' => 'datetime',
|
||||||
'password' => 'hashed',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the user's password.
|
||||||
|
*
|
||||||
|
* @param string $value
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setPasswordAttribute($value)
|
||||||
|
{
|
||||||
|
$this->attributes['password'] = bcrypt($value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue