public getLeftSibling ( ) : NestedSet | ||
Результат | NestedSet |
public function getLeftSibling()
{
return $this->siblings()->where($this->getLeftColumnName(), '<', $this->getLeft())->orderBy($this->getOrderColumnName(), 'desc')->get()->last();
}