dispatch('error', 'Invitation not found.'); } $initiation_found->delete(); $this->refreshInvitations(); $this->dispatch('success', 'Invitation revoked.'); } public function refreshInvitations() { $this->invitations = TeamInvitation::whereTeamId(currentTeam()->id)->get(); } }