Closed wfsmith closed 4 years ago
Are you using global scopes -- it looks like type()
might be something like that? At the moment this package does not work with global scopes.
Ah, yes I am. I have a scope for filtering only published wordpress posts that is applied on the request. Thank you Mike! Looks like I'll have to rely on model caching for now. Cheers
Yea, I use local scopes applied with traits (if used by more than one model) to models. That takes care of the global scope issue for me. :)
Describe the bug
Fresh install of LaravelModelCaching. Added the use statements and requested a page from our custom laravel app.
This error occurred:
I am struggling to find the culprit but my guess is that this package is not compatible with Corcel?
Eloquent Query
There are many in the model I'm testing, but they are all mostly Corcel methods.
etc
Stack Trace
Environment
Additional context
We're using Corcel on top of Laravel as it is a headless WordPress setup. I followed just the very basic installation instructions, adding the
use
declarations and refreshing the app.