Remove old code

This commit is contained in:
Toby Zerner 2019-11-16 10:14:12 +10:30
parent ce085c32f3
commit 1ccbe6568f
1 changed files with 0 additions and 3 deletions

View File

@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use InvalidArgumentException; use InvalidArgumentException;
use Tobyz\JsonApiServer\Schema\Attribute; use Tobyz\JsonApiServer\Schema\Attribute;
use Tobyz\JsonApiServer\Schema\HasMany; use Tobyz\JsonApiServer\Schema\HasMany;
@ -191,8 +190,6 @@ class EloquentAdapter implements AdapterInterface
public function load(array $models, array $relationships, Closure $scope): void public function load(array $models, array $relationships, Closure $scope): void
{ {
$relationship = end($relationships);
(new Collection($models))->loadMissing([ (new Collection($models))->loadMissing([
$this->getRelationshipPath($relationships) => $scope $this->getRelationshipPath($relationships) => $scope
]); ]);