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 ca80cbf commit e0b321aCopy full SHA for e0b321a
app/View/Composers/ChannelsComposer.php
@@ -12,8 +12,11 @@ public function compose(View $view)
12
{
13
$view->with(
14
'channels',
15
- Cache::remember('channels', now()->addDay(),
16
- fn () => Channel::with('items')->whereNull('parent_id')->get())
+ Cache::remember(
+ 'channels',
17
+ now()->addDay(),
18
+ fn () => Channel::with('items')->whereNull('parent_id')->get()
19
+ )
20
);
21
}
22
0 commit comments