diff --git a/src/Http/Controllers/ChannelController.php b/src/Http/Controllers/ChannelController.php index 6d14918..af145e8 100644 --- a/src/Http/Controllers/ChannelController.php +++ b/src/Http/Controllers/ChannelController.php @@ -73,7 +73,7 @@ public function show(Channel $channel) { return view('vanilo::channel.show', $this->processViewData(__METHOD__, [ 'channel' => $channel, - 'channelProducts' => (new ProductSearch())->withinChannel($channel)->withInactiveProducts()->getResults(), + 'products' => (new ProductSearch())->withinChannel($channel)->withInactiveProducts()->getResults(), ])); } diff --git a/src/resources/views/channel/show.blade.php b/src/resources/views/channel/show.blade.php index bd54e12..a8a1b28 100644 --- a/src/resources/views/channel/show.blade.php +++ b/src/resources/views/channel/show.blade.php @@ -15,7 +15,7 @@ {{ __('Assign a product') }} - {!! widget('vanilo::channel.products')->render($channelProducts) !!} + {!! widget('vanilo::channel.products')->render($products) !!} @stop