From 0c60fbe794bf290c52b8b52ae153d5080402d5fa Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Mon, 24 Oct 2022 12:37:31 -0400 Subject: [PATCH] Fix recursion --- app/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), ); }