src/Listify.php
public function moveToTop()
    {
        if ($this->isNotInList()) return $this;

        $this->getConnection()->transaction(function() {

            $this->incrementPositionsOfItemsAbove();

            $this->setListPosition($this->listifyTop());
        });

        return $this;
    }
public function moveToTop()
    {
        if ($this->isNotInList()) return $this;

        $this->getConnection()->transaction(function() {

            $this->incrementPositionsOfItemsAbove();

            $this->setListPosition($this->listifyTop());
        });

        return $this;
    }
public function moveToTop ( ) { if ( $ this -> isNotInList ( ) ) return $ this ; $ this -> getConnection ( ) -> transaction ( function ( ) { $ this -> incrementPositionsOfItemsAbove ( ) ; $ this -> setListPosition ( $ this -> listifyTop ( ) ) ; } ) ; return $ this ; }
Moves the record to the top of the list.
This re-arranges the affected surrounding records.

@return $this
Moves the record to the top of the list . This re - arranges the affected surrounding records .