Метод |
Описание |
|
getHighestOrderNumber ( ) : integer |
*
Determine the order value for the new record. |
|
scopeOrdered ( Builder $query ) : Builder |
*
Let's be nice and provide an ordered scope. |
|
setHighestOrderNumber ( ) |
Modify the order column value. |
|
setNewOrder ( array $ids, integer $startOrder = 1 ) |
This function reorders the records: the record with the first id in the array
will get order 1, the record with the second it will get order 2, . |
|
shouldSortWhenCreating ( ) : boolean |
*
Determine if the order column should be set when saving a new model instance. |
|