channelRepository->with('sliders')->get(); if($channels) { return Channel::collection($channels); } else { return response()->json(['not found'],404); } } public function get($channel_id){ $this->categoryRepository->getCategoryTreeWithoutDescendant(request()->input('parent_id')); } }