Skip to content

Commit 1ccbe65

Browse files
committed
Remove old code
1 parent ce085c3 commit 1ccbe65

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Adapter/EloquentAdapter.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Illuminate\Database\Eloquent\Model;
88
use Illuminate\Database\Eloquent\Relations\BelongsTo;
99
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
10-
use Illuminate\Database\Eloquent\SoftDeletes;
1110
use InvalidArgumentException;
1211
use Tobyz\JsonApiServer\Schema\Attribute;
1312
use Tobyz\JsonApiServer\Schema\HasMany;
@@ -191,8 +190,6 @@ public function paginate($query, int $limit, int $offset): void
191190

192191
public function load(array $models, array $relationships, Closure $scope): void
193192
{
194-
$relationship = end($relationships);
195-
196193
(new Collection($models))->loadMissing([
197194
$this->getRelationshipPath($relationships) => $scope
198195
]);

0 commit comments

Comments
 (0)