public function getAll()
    {
        $model = new static::$model;

        $query = $model::with($model::$localWith);
        $this->qualifyCollectionQuery($query);

        // Handle pagination, if applicable
        $perPage = $model->getPerPage();
        if ($perPage) {
            $paginator = $query->paginate($perPage);

            return $this->response->paginator($paginator, $this->getTransformer());
        } else {
            $resources = $query->get();

            return $this->response->collection($resources, $this->getTransformer());
        }
    }
public function getAll()
    {
        $model = new static::$model;

        $query = $model::with($model::$localWith);
        $this->qualifyCollectionQuery($query);

        // Handle pagination, if applicable
        $perPage = $model->getPerPage();
        if ($perPage) {
            $paginator = $query->paginate($perPage);

            return $this->response->paginator($paginator, $this->getTransformer());
        } else {
            $resources = $query->get();

            return $this->response->collection($resources, $this->getTransformer());
        }
    }
public function getAll ( ) { $ model = new static :: $ model ; $ query = $ model :: with ( $ model :: $ localWith ) ; $ this -> qualifyCollectionQuery ( $ query ) ; // Handle pagination, if applicable $ perPage = $ model -> getPerPage ( ) ; if ( $ perPage ) { $ paginator = $ query -> paginate ( $ perPage ) ; return $ this -> response -> paginator ( $ paginator , $ this -> getTransformer ( ) ) ; } else { $ resources = $ query -> get ( ) ; return $ this -> response -> collection ( $ resources , $ this -> getTransformer ( ) ) ; } }
Request to retrieve a collection of all items of this resource

@return \Dingo\Api\Http\Response
Request to retrieve a collection of all items of this resource