@@ -86,6 +86,9 @@ |
||
86 | 86 | return $this; |
87 | 87 | } |
88 | 88 | |
89 | + /** |
|
90 | + * @param string $sorts |
|
91 | + */ |
|
89 | 92 | public function allowedSorts($sorts): self |
90 | 93 | { |
91 | 94 | $sorts = is_array($sorts) ? $sorts : func_get_args(); |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\QueryBuilder; |
4 | 4 | |
5 | +use Illuminate\Database\Eloquent\Builder; |
|
5 | 6 | use Illuminate\Http\Request; |
6 | 7 | use Illuminate\Support\Collection; |
7 | -use Illuminate\Database\Eloquent\Builder; |
|
8 | -use Spatie\QueryBuilder\Exceptions\InvalidSortQuery; |
|
9 | 8 | use Spatie\QueryBuilder\Exceptions\InvalidFilterQuery; |
10 | 9 | use Spatie\QueryBuilder\Exceptions\InvalidIncludeQuery; |
10 | +use Spatie\QueryBuilder\Exceptions\InvalidSortQuery; |
|
11 | 11 | |
12 | 12 | class QueryBuilder extends Builder |
13 | 13 | { |