diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index 9d5d8549442f..a6d1363e4cdd 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -70,7 +70,7 @@ class Authenticate { } protected function getInvitation($key){ - $invitation = Invitation::where('invitation_key', '=', $key)->first(); + $invitation = Invitation::withTrashed()->where('invitation_key', '=', $key)->first(); if ($invitation && !$invitation->is_deleted) { return $invitation; }