fennik

Results 3 comments of fennik

@ajcastro I have just got this issue with laravel/framework:7.28.4 and ajcastro/eager-load-pivot-relations:v0.2.2 Did some debugging with the following: ``` protected function eagerLoadPivotRelations($models, $pivotAccessor) { dump($pivotAccessor); dump($pivots); $pivots = Arr::pluck($models, $pivotAccessor); dump($pivots);...

After a little more investigating I found how to replicate. Here is your example from above: ``` User::with(['cars.pivot.color'])->paginate(); ``` I can replicate with the following ``` User::find(1)->cars()->with(['pivot.color'])->paginate(); ```

Any update on this? We have just run across the issue in our laravel project where we have introduced a second directory `src/` additional to the default `app/` directory. As...