Skip to content

Commit badbedd

Browse files
committed
Keep Eloquent query builder
1 parent 7656f12 commit badbedd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Laravel/EloquentCollection.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Tobyz\JsonApiServer\Laravel;
44

5-
use Illuminate\Database\Query\Builder;
6-
use Illuminate\Support\Facades\Auth;
75
use RuntimeException;
86
use Tobyz\JsonApiServer\Context;
97
use Tobyz\JsonApiServer\Pagination\OffsetPagination;
@@ -58,7 +56,6 @@ public function query(Context $context): object
5856

5957
$queries[$type] = $resource
6058
->query($context)
61-
->toBase()
6259
->select("$keyName as id")
6360
->selectRaw('? as type', [$type]);
6461
}

0 commit comments

Comments
 (0)