Method | Description | |
---|---|---|
scopeOrdered ( |
Let's be nice and provide an ordered scope. | |
setHighestOrderNumber ( ) | Modify the order column value. | |
setNewOrder ( array | ArrayAccess $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. |
public scopeOrdered ( |
||
$query | ||
return |
public setHighestOrderNumber ( ) |
public static setNewOrder ( array | ArrayAccess $ids, integer $startOrder = 1 ) | ||
$ids | array | ArrayAccess | |
$startOrder | integer |
public shouldSortWhenCreating ( ) : boolean | ||
return | boolean |