From 48c3a87308f883c4ef28c712be6a35f2f44e95bc Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Wed, 3 Dec 2025 14:49:44 +0100 Subject: [PATCH] BF laravel 9 --- workbench/app/Models/User.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/workbench/app/Models/User.php b/workbench/app/Models/User.php index 8b9b51f..a2e63a5 100644 --- a/workbench/app/Models/User.php +++ b/workbench/app/Models/User.php @@ -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); + } }