public function index()
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $members = Member::with(
            'member_category',
            'user'
        )
            ->onTeam()
            ->active()
            ->orderBy('preference', 'asc')
            ->paginate(config('app.pagination_default'));
        /** @noinspection PhpUndefinedMethodInspection */
        return fractal($members, new MemberTransformer())
            ->withResourceName('member')
            ->respond();
    }
public function index()
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $members = Member::with(
            'member_category',
            'user'
        )
            ->onTeam()
            ->active()
            ->orderBy('preference', 'asc')
            ->paginate(config('app.pagination_default'));
        /** @noinspection PhpUndefinedMethodInspection */
        return fractal($members, new MemberTransformer())
            ->withResourceName('member')
            ->respond();
    }
public function index ( ) { /** @noinspection PhpUndefinedMethodInspection */ $ members = Member :: with ( 'member_category' , 'user' ) -> onTeam ( ) -> active ( ) -> orderBy ( 'preference' , 'asc' ) -> paginate ( config ( 'app.pagination_default' ) ) ; /** @noinspection PhpUndefinedMethodInspection */ return fractal ( $ members , new MemberTransformer ( ) ) -> withResourceName ( 'member' ) -> respond ( ) ; }
List of Members with pagination headers for the Team currently selected in the User's context

@return \Illuminate\Http\Response JSON response with list of Members
List of Members with pagination headers for the Team currently selected in the User s context