app/Http/Controllers/Settings/InvitationController.php
public function destroyTeamInvitationForUser(Request $request, $inviteId)
    {
        $request->user()->invitations()->findOrFail($inviteId)->delete();
    }
public function destroyTeamInvitationForUser(Request $request, $inviteId)
    {
        $request->user()->invitations()->findOrFail($inviteId)->delete();
    }
Destroy the given team invitation.

@param  \Illuminate\Http\Request  $request
@param  string  $inviteId
@return \Illuminate\Http\Response