File tree 2 files changed +5
-3
lines changed
src/MediaCollections/Models/Concerns
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ You can easily reorder a list of media by calling ̀Media::setNewOrder`:
10
10
``` php
11
11
/**
12
12
* This function reorders the records: the record with the first id in the array
13
- * will get order 11, the record with the second id will get order 2, ...
13
+ * will get the starting order (defaults to 1), the record with the second id
14
+ * will get the starting order + 1, and so on.
14
15
*
15
- * A starting order number can be optionally supplied (defaults to 1) .
16
+ * A starting order number can be optionally supplied.
16
17
*
17
18
* @param array $ids
18
19
* @param int $startOrder
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ public function scopeOrdered(Builder $query): Builder
27
27
28
28
/*
29
29
* This function reorders the records: the record with the first id in the array
30
- * will get order 1, the record with the second it will get order 2, ...
30
+ * will get the starting order (defaults to 1), the record with the second id
31
+ * will get the starting order + 1, and so on.
31
32
*
32
33
* A starting order number can be optionally supplied.
33
34
*/
You can’t perform that action at this time.
0 commit comments