public function show($id)
    {
        $member = Member::with(
            'member_category',
            'user'
        )
            ->findOrFail($id);
        $this->authorize('view', $member);
        /** @noinspection PhpUndefinedMethodInspection */
        return fractal($member, new MemberTransformer())
            ->withResourceName('member')
            ->respond();
    }
public function show($id)
    {
        $member = Member::with(
            'member_category',
            'user'
        )
            ->findOrFail($id);
        $this->authorize('view', $member);
        /** @noinspection PhpUndefinedMethodInspection */
        return fractal($member, new MemberTransformer())
            ->withResourceName('member')
            ->respond();
    }
public function show ( $ id ) { $ member = Member :: with ( 'member_category' , 'user' ) -> findOrFail ( $ id ) ; $ this -> authorize ( 'view' , $ member ) ; /** @noinspection PhpUndefinedMethodInspection */ return fractal ( $ member , new MemberTransformer ( ) ) -> withResourceName ( 'member' ) -> respond ( ) ; }
Show a single Member

@param $id string UUID of the selected Member
@return \Illuminate\Http\Response JSON response with Member attributes
Show a single Member