public function destroy($memberId, $id)
    {
        $memberTag = MemberTag::findOrFail($id);
        $this->authorize('detachMember', [$memberTag, $memberId]);
        /** @noinspection PhpUndefinedMethodInspection */
        $memberTag->members()->detach($memberId);
        return fractal($memberTag->id, new DeletedTransformer())
            ->withResourceName('deletedMemberTag')
            ->respond();
    }
public function destroy($memberId, $id)
    {
        $memberTag = MemberTag::findOrFail($id);
        $this->authorize('detachMember', [$memberTag, $memberId]);
        /** @noinspection PhpUndefinedMethodInspection */
        $memberTag->members()->detach($memberId);
        return fractal($memberTag->id, new DeletedTransformer())
            ->withResourceName('deletedMemberTag')
            ->respond();
    }
public function destroy ( $ memberId , $ id ) { $ memberTag = MemberTag :: findOrFail ( $ id ) ; $ this -> authorize ( 'detachMember' , [ $ memberTag , $ memberId ] ) ; /** @noinspection PhpUndefinedMethodInspection */ $ memberTag -> members ( ) -> detach ( $ memberId ) ; return fractal ( $ memberTag -> id , new DeletedTransformer ( ) ) -> withResourceName ( 'deletedMemberTag' ) -> respond ( ) ; }
Remove an MemberTag from the Member.

@param  string $memberId UUID of the Member to detach the MemberTag
@param  string $id UUID of the MemberTag to detach
@return \Illuminate\Http\Response Deleted MemberTag
Remove an MemberTag from the Member .