filter options

This commit is contained in:
merdan 2022-11-02 11:29:18 +05:00
parent 0fd4bfb670
commit 785cc33f31
1 changed files with 1 additions and 10 deletions

View File

@ -13,17 +13,8 @@ class Channels extends Controller
public function index()
{
return Channel::make($this->channelRepository->first());
$channels = $this->channelRepository->with('sliders')->get();
if($channels)
{
return Channel::collection($channels);
}
else
{
return response()->json(['not found'],404);
}
}
public function get($channel_id){