/** * @param $token * @return mixed */ public function findInvitationByToken($token) { $account = $this->manager->account(); return $this->invitation->where('account_id', $account->id)->where('token', $token)->first(); }