src/Franzose/ClosureTable/Models/Entity.php
public function setPositionAttribute($value)
    {
        if ($this->position === $value) {
            return;
        }
        $this->old_position = $this->position;
        $this->attributes[$this->getPositionColumn()] = intval($value);
    }
public function setPositionAttribute($value)
    {
        if ($this->position === $value) {
            return;
        }
        $this->old_position = $this->position;
        $this->attributes[$this->getPositionColumn()] = intval($value);
    }
public function setPositionAttribute ( $ value ) { if ( $ this -> position === $ value ) { return ; } $ this -> old_position = $ this -> position ; $ this -> attributes [ $ this -> getPositionColumn ( ) ] = intval ( $ value ) ; }
Sets new position and caches the old one.

@param int $value
Sets new position and caches the old one .