@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\QueryBuilder\Concerns; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
6 | 5 | use Illuminate\Support\Collection; |
6 | +use Illuminate\Support\Str; |
|
7 | 7 | use Spatie\QueryBuilder\Exceptions\InvalidFieldQuery; |
8 | 8 | |
9 | 9 | trait AddsFieldsToQuery |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\QueryBuilder\Concerns; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
6 | 5 | use Illuminate\Support\Collection; |
6 | +use Illuminate\Support\Str; |
|
7 | 7 | use Spatie\QueryBuilder\Exceptions\InvalidIncludeQuery; |
8 | 8 | |
9 | 9 | trait AddsIncludesToQuery |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\QueryBuilder\Concerns; |
4 | 4 | |
5 | -use Spatie\QueryBuilder\Filter; |
|
6 | 5 | use Illuminate\Support\Collection; |
7 | 6 | use Spatie\QueryBuilder\Exceptions\InvalidFilterQuery; |
7 | +use Spatie\QueryBuilder\Filter; |
|
8 | 8 | |
9 | 9 | trait FiltersQuery |
10 | 10 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\QueryBuilder\Concerns; |
4 | 4 | |
5 | -use Spatie\QueryBuilder\Sort; |
|
6 | 5 | use Illuminate\Support\Collection; |
7 | 6 | use Spatie\QueryBuilder\Exceptions\InvalidSortQuery; |
7 | +use Spatie\QueryBuilder\Sort; |
|
8 | 8 | |
9 | 9 | trait SortsQuery |
10 | 10 | { |
@@ -2,14 +2,14 @@ |
||
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\Concerns\SortsQuery; |
|
9 | -use Spatie\QueryBuilder\Concerns\FiltersQuery; |
|
10 | 8 | use Spatie\QueryBuilder\Concerns\AddsFieldsToQuery; |
11 | 9 | use Spatie\QueryBuilder\Concerns\AddsIncludesToQuery; |
12 | 10 | use Spatie\QueryBuilder\Concerns\AppendsAttributesToResults; |
11 | +use Spatie\QueryBuilder\Concerns\FiltersQuery; |
|
12 | +use Spatie\QueryBuilder\Concerns\SortsQuery; |
|
13 | 13 | |
14 | 14 | class QueryBuilder extends Builder |
15 | 15 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\QueryBuilder; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
6 | 5 | use Illuminate\Http\Request; |
7 | 6 | use Illuminate\Support\Collection; |
7 | +use Illuminate\Support\Str; |
|
8 | 8 | |
9 | 9 | class QueryBuilderRequest extends Request |
10 | 10 | { |