laravel-responder icon indicating copy to clipboard operation
laravel-responder copied to clipboard

Load already loaded relations

Open fedaa-mahmoud opened this issue 5 years ago • 1 comments

Hello,

I face a problem while using eager loading using transformers,

the problem that the package load the relation ship if it is already loaded, so I suggest that

$data->loadMissing($relations); instead of load method,

In eagerLoadRelations method from TransformBuilder class,

hope this change applied ASAP.

fedaa-mahmoud avatar Aug 12 '20 15:08 fedaa-mahmoud

@flugger Check this out pls

fedaa-mahmoud avatar Aug 12 '20 15:08 fedaa-mahmoud