diff --git a/app/Models/User.php b/app/Models/User.php index 98e8fa10a..2e7bab5b2 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -215,7 +215,7 @@ class User extends Model implements public function username(): Attribute { return new Attribute( - get: fn () => mb_strtolower($this->username), + get: fn ($username) => mb_strtolower($username), set: fn ($username) => mb_strtolower($username), ); }