issues
This commit is contained in:
parent
2ca95609e7
commit
58ddc68520
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue