There was an error while loading. Please reload this page.
1 parent 4455295 commit 67d7a3dCopy full SHA for 67d7a3d
1 file changed
src/Laravel/Eloquent/Filter/OrderFilter.php
@@ -45,8 +45,8 @@ public function apply(Builder $builder, mixed $values, Parameter $parameter, arr
45
return $builder;
46
}
47
48
- $direction = strtoupper($values);
49
- if (!\in_array($direction, ['ASC', 'DESC'], true)) {
+ $direction = strtolower($values);
+ if (!\in_array($direction, ['asc', 'desc'], true)) {
50
51
52
0 commit comments