diff --git a/app/Http/Controllers/SignupController.php b/app/Http/Controllers/SignupController.php index 39c815d5..2e4b0055 100644 --- a/app/Http/Controllers/SignupController.php +++ b/app/Http/Controllers/SignupController.php @@ -42,7 +42,7 @@ class SignupController extends Controller $invite = Invite::where('code', '=', $code)->first(); - if (!$invite || $invite->claimed()) { + if (!$invite || $invite->is_claimed) { throw new BadRequestHttpException(); } @@ -67,7 +67,7 @@ class SignupController extends Controller $invite = Invite::where('code', '=', $code)->first(); - if (!$invite || $invite->claimed()) { + if (!$invite || $invite->is_claimed) { throw new BadRequestHttpException(); } diff --git a/app/Models/Invite.php b/app/Models/Invite.php index 2a4ea330..a77bb484 100644 --- a/app/Models/Invite.php +++ b/app/Models/Invite.php @@ -60,7 +60,7 @@ class Invite extends Model * * @return bool */ - public function claimed() + public function getIsClaimedAttribute() { return $this->claimed_at !== null; }