public function destroy($memberTagId, $id)
    {
        $member = Member::findOrFail($id);
        $this->authorize('detachMemberTagMember', $member);
        /** @noinspection PhpUndefinedMethodInspection */
        $member->member_tags()->detach($memberTagId);
        return fractal($member->id, new DeletedTransformer())
            ->withResourceName('deletedMember')
            ->respond();
    }
public function destroy($memberTagId, $id)
    {
        $member = Member::findOrFail($id);
        $this->authorize('detachMemberTagMember', $member);
        /** @noinspection PhpUndefinedMethodInspection */
        $member->member_tags()->detach($memberTagId);
        return fractal($member->id, new DeletedTransformer())
            ->withResourceName('deletedMember')
            ->respond();
    }
public function destroy ( $ memberTagId , $ id ) { $ member = Member :: findOrFail ( $ id ) ; $ this -> authorize ( 'detachMemberTagMember' , $ member ) ; /** @noinspection PhpUndefinedMethodInspection */ $ member -> member_tags ( ) -> detach ( $ memberTagId ) ; return fractal ( $ member -> id , new DeletedTransformer ( ) ) -> withResourceName ( 'deletedMember' ) -> respond ( ) ; }
Remove an Member from the MemberTag.

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