Remove old code
This commit is contained in:
parent
ce085c32f3
commit
1ccbe6568f
|
|
@ -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
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue