You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
saving model not working with exception
Illuminate \ Database \ Eloquent \ MissingAttributeException
The attribute [query] either does not exist or was not retrieved for model [app\Models\MyModel].
Eloquent Query
Please provide the complete eloquent query that caused the bug, for example:
Stack Trace
Illuminate \ Database \ Eloquent \ MissingAttributeException
The attribute [query] either does not exist or was not retrieved for model [app\Models\MyModel].
Environment
PHP 8.1.6
Laravel 9.36.3
Model Caching: 0.12.5
** work around **
add to model
protected$query = null; // required property for Cachable trait
I think you should add this in trait
The text was updated successfully, but these errors were encountered:
When using in app service provider
saving model not working with exception
Illuminate \ Database \ Eloquent \ MissingAttributeException
The attribute [query] either does not exist or was not retrieved for model [app\Models\MyModel].
Eloquent Query
Please provide the complete eloquent query that caused the bug, for example:
Stack Trace
Illuminate \ Database \ Eloquent \ MissingAttributeException
The attribute [query] either does not exist or was not retrieved for model [app\Models\MyModel].
Environment
PHP 8.1.6
Laravel 9.36.3
Model Caching: 0.12.5
** work around **
add to model
I think you should add this in trait
The text was updated successfully, but these errors were encountered: