Fix recursion

This commit is contained in:
Lance Pioch 2022-10-24 12:37:31 -04:00
parent 8a526539be
commit 0c60fbe794

View file

@ -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),
);
}