function showBrand(Catalog $service) {
return $service->show();
}
class CatalogController extends Controller {
function showBrand(BrandService $brand) {
return $brand->show();
}
function showCity(CityService $city) {
return $city->show();
}
}
private $basket;
public function remove($id) {
$this->basket->remove($id);
return redirect()->route('private');
}
$discounts = Discount::WhereHas('product', function ($q) use ($node) {
$q->where('category_id', $node->id);
})->get();