Open
Description
API Platform version(s) affected: 4.1
Description
In a Laravel application, if the strict mode (https://laravel-news.com/shouldbestrict) is applied to models, the collection endpoints throws the following error:
Attempted to lazy load [...] on model [App\\Models\\...] but lazy loading is disabled.
How to reproduce
Create a Laravel application, add a model, a second model with a foreign key and add Model::shouldBeStrict()
within the boot method of the service provider.
Possible Solution
Trying to not lazy load the sub resources?
Additional Context
Metadata
Metadata
Assignees
Labels
No labels