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); + } }