@@ -92,6 +92,9 @@ |
||
92 | 92 | }, $fields); |
93 | 93 | } |
94 | 94 | |
95 | + /** |
|
96 | + * @param string $table |
|
97 | + */ |
|
95 | 98 | protected function prependField(string $field, ?string $table = null): string |
96 | 99 | { |
97 | 100 | if (! $table) { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * @param array|string|\Spatie\QueryBuilder\AllowedSort $sorts |
40 | 40 | * |
41 | - * @return \Spatie\QueryBuilder\QueryBuilder |
|
41 | + * @return SortsQuery |
|
42 | 42 | */ |
43 | 43 | public function defaultSort($sorts): self |
44 | 44 | { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | /** |
49 | 49 | * @param array|string|\Spatie\QueryBuilder\AllowedSort $sorts |
50 | 50 | * |
51 | - * @return \Spatie\QueryBuilder\QueryBuilder |
|
51 | + * @return SortsQuery |
|
52 | 52 | */ |
53 | 53 | public function defaultSorts($sorts): self |
54 | 54 | { |
@@ -52,6 +52,9 @@ |
||
52 | 52 | }); |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param string $internalName |
|
57 | + */ |
|
55 | 58 | public static function count(string $name, ?string $internalName = null): Collection |
56 | 59 | { |
57 | 60 | return collect([ |
@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Support\Collection; |
6 | 6 | use Illuminate\Support\Str; |
7 | +use Spatie\QueryBuilder\Includes\IncludeInterface; |
|
7 | 8 | use Spatie\QueryBuilder\Includes\IncludedCount; |
8 | 9 | use Spatie\QueryBuilder\Includes\IncludedRelationship; |
9 | -use Spatie\QueryBuilder\Includes\IncludeInterface; |
|
10 | 10 | |
11 | 11 | class AllowedInclude |
12 | 12 | { |