src/Torann/RemoteModel/Model.php
public static function all(array $params = [])
    {
        // Remove empty params
        $params = array_filter($params);

        $instance = new static([], static::getParentID());

        // Make request
        $result = $instance->makeRequest($instance->getEndpoint(), 'all', [$params]);

        // Hydrate object
        $result = $instance->paginateHydrate($result);

        // Append search params
        $result->appends($params);

        return $result;
    }
public static function all(array $params = [])
    {
        // Remove empty params
        $params = array_filter($params);

        $instance = new static([], static::getParentID());

        // Make request
        $result = $instance->makeRequest($instance->getEndpoint(), 'all', [$params]);

        // Hydrate object
        $result = $instance->paginateHydrate($result);

        // Append search params
        $result->appends($params);

        return $result;
    }
public static function all ( array $ params = [ ] ) { // Remove empty params $ params = array_filter ( $ params ) ; $ instance = new static ( [ ] , static :: getParentID ( ) ) ; // Make request $ result = $ instance -> makeRequest ( $ instance -> getEndpoint ( ) , 'all' , [ $ params ] ) ; // Hydrate object $ result = $ instance -> paginateHydrate ( $ result ) ; // Append search params $ result -> appends ( $ params ) ; return $ result ; }
Make an all paginated request.

@param  array $params
@return \Illuminate\Pagination\LengthAwarePaginator
Make an all paginated request .