public function destroy($id)
    {
        $memberInvitation = MemberInvitation::findOrFail($id);
        $this->authorize('destroy', $memberInvitation);
        $memberInvitation->delete();
        return fractal($id, new DeletedTransformer())
            ->withResourceName('deletedMemberInvitation')
            ->respond();
    }
public function destroy($id)
    {
        $memberInvitation = MemberInvitation::findOrFail($id);
        $this->authorize('destroy', $memberInvitation);
        $memberInvitation->delete();
        return fractal($id, new DeletedTransformer())
            ->withResourceName('deletedMemberInvitation')
            ->respond();
    }
public function destroy ( $ id ) { $ memberInvitation = MemberInvitation :: findOrFail ( $ id ) ; $ this -> authorize ( 'destroy' , $ memberInvitation ) ; $ memberInvitation -> delete ( ) ; return fractal ( $ id , new DeletedTransformer ( ) ) -> withResourceName ( 'deletedMemberInvitation' ) -> respond ( ) ; }
Delete an MemberInvitation object

@param  int $id
@return \Illuminate\Http\Response JSON object with status message
Delete an MemberInvitation object