Laravel Version
10.28.0
PHP Version
sail latest
Database Driver & Version
sail latest
Description
public function boot(): void
{
Model::preventLazyLoading(true);
}
Turning this setting on doesn't do anything. The model is still "lazy loaded". Please fix it
Steps To Reproduce
Add Model::preventLazyLoading(true)
Try to lazy load anything and it won't throw the exception:
> Model::preventLazyLoading(true)
> Message::find(34)->sender
[!] Aliasing 'Message' to 'App\Models\Message' for this Tinker session.
= App\Models\User {#7749
id: 25,
...
Laravel Version
10.28.0
PHP Version
sail latest
Database Driver & Version
sail latest
Description
public function boot(): void
{
Model::preventLazyLoading(true);
}
Turning this setting on doesn't do anything. The model is still "lazy loaded". Please fix it
Steps To Reproduce
Add
Model::preventLazyLoading(true)Try to lazy load anything and it won't throw the exception: