filter options
This commit is contained in:
parent
0fd4bfb670
commit
785cc33f31
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in New Issue