public function getBrandByID($brandId) { $brand = new Brands(); $data = $brand->getBrandByID($brandId); return response()->json($data); }