src/Listify.php
public function higherItems($limit = null)
    {
        if ($this->isNotInList()) return null;

        $query = $this->listifyScopedQuery()
            ->where($this->positionColumn(), '<', $this->getListifyPosition())
            ->orderBy($this->getTable() . '.' . $this->positionColumn(), 'DESC');

        if (null !== $limit) {
            $query->take($limit);
        }

        return $query->get();
    }
public function higherItems($limit = null)
    {
        if ($this->isNotInList()) return null;

        $query = $this->listifyScopedQuery()
            ->where($this->positionColumn(), '<', $this->getListifyPosition())
            ->orderBy($this->getTable() . '.' . $this->positionColumn(), 'DESC');

        if (null !== $limit) {
            $query->take($limit);
        }

        return $query->get();
    }
public function higherItems ( $ limit = null ) { if ( $ this -> isNotInList ( ) ) return null ; $ query = $ this -> listifyScopedQuery ( ) -> where ( $ this -> positionColumn ( ) , '<' , $ this -> getListifyPosition ( ) ) -> orderBy ( $ this -> getTable ( ) . '.' . $ this -> positionColumn ( ) , 'DESC' ) ; if ( null !== $ limit ) { $ query -> take ( $ limit ) ; } return $ query -> get ( ) ; }
Returns a number of previous records on the list, above the current record.

@param null|integer $limit the maximum number of records to retrieve
@return \Illuminate\Database\Eloquent\Collection|static[]
Returns a number of previous records on the list above the current record .