BF laravel 9

This commit is contained in:
Fabian @ Blax Software 2025-12-03 14:49:44 +01:00
parent a8fdfa3263
commit 48c3a87308
1 changed files with 11 additions and 1 deletions

View File

@ -42,6 +42,16 @@ class User extends Authenticatable
*/
protected $casts = [
'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);
}
}