This commit is contained in:
rahul shukla 2019-04-17 12:56:33 +05:30
parent 2ca95609e7
commit 58ddc68520
1 changed files with 4 additions and 3 deletions

View File

@ -31,13 +31,14 @@ use Webkul\Core\Repositories\SliderRepository as Sliders;
*/
public function index()
{
if (request()->route('any'))
if (request()->route('any')) {
abort(404);
}
$current_channel = core()->getCurrentChannel();
$all_sliders = $this->sliders->findWhere(['channel_id' => $current_channel['id']]);
return view($this->_config['view'])->with('sliderData', $all_sliders->toArray());
}
}
}