We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93861f7 commit f2f3c51Copy full SHA for f2f3c51
src/Repositories/EloquentTaskRepository.php
@@ -54,7 +54,7 @@ public function find($id)
54
}
55
56
return Cache::rememberForever('totem.task.'.$id, function () use ($id) {
57
- return Task::find($id);
+ return Task::query()->with('frequencies')->find($id);
58
});
59
60
@@ -66,7 +66,7 @@ public function find($id)
66
public function findAll()
67
{
68
return Cache::rememberForever('totem.tasks.all', function () {
69
- return Task::all();
+ return Task::query()->with('frequencies')->get();
70
71
72
0 commit comments