public function index()
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $memberTags = MemberTag::onTeam()
            ->orderBy('name', 'asc')
            ->paginate(config('app.pagination_default'));
        return fractal($memberTags, new MemberTagTransformer())
            ->withResourceName('memberTag')
            ->respond();
    }
public function index()
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $memberTags = MemberTag::onTeam()
            ->orderBy('name', 'asc')
            ->paginate(config('app.pagination_default'));
        return fractal($memberTags, new MemberTagTransformer())
            ->withResourceName('memberTag')
            ->respond();
    }
public function index ( ) { /** @noinspection PhpUndefinedMethodInspection */ $ memberTags = MemberTag :: onTeam ( ) -> orderBy ( 'name' , 'asc' ) -> paginate ( config ( 'app.pagination_default' ) ) ; return fractal ( $ memberTags , new MemberTagTransformer ( ) ) -> withResourceName ( 'memberTag' ) -> respond ( ) ; }
List MemberTags for the Team currently selected in the User's context

@return \Illuminate\Http\Response JSON encoded array of MemberTags
List MemberTags for the Team currently selected in the User s context