We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5e9a89 commit 9e82a24Copy full SHA for 9e82a24
tests/Eloquent/OrderAndPaginationTest.php
@@ -62,7 +62,7 @@ function isSorted(Collection $collection, $key, $descending = false): bool
62
test('sort products by color with missing values treated as first', function () {
63
Product::factory()->state(['color' => null])->create();
64
Product::factory()->state(['color' => 'blue'])->create();
65
- $products = Product::orderBy('color', 'desc', null, '_first')->get();
+ $products = Product::orderBy('color', 'desc')->withSort('color', 'missing', '_first')->get();
66
expect($products->first()->color)->toBeNull();
67
});
68
0 commit comments