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
Model: App\Models\User => Relation: App|Models\Task - You should add "with ('App\Models\Task')" to eager-load this relation.
Model: App\Models\Task => Relation: user - You should add
"with ('user')" to eager-load this relation.
I am using the following code to count a user's open tasks:
The plugin tells me:
When I do that, the issue still occurs:
Using
gives me
Call to undefined method Illuminate\Database\Eloquent\Builder::tasks()
but user has a tasks relationship:The text was updated successfully, but these errors were encountered: