added companies and product image
This commit is contained in:
@@ -57,7 +57,7 @@ class GlobalRealAssetController extends Controller
|
||||
public function globalIndustrialRealEstateAllData($type = 'Open')
|
||||
{
|
||||
try {
|
||||
return (new test(Product::has('realEstate')->with('realEstate.photo')->globalIndustrialRealEstate()->where('type', $type)->active()->get()))
|
||||
return (new test(Product::has('realEstate')->with('realEstate.photo','product_images')->globalIndustrialRealEstate()->where('type', $type)->active()->get()))
|
||||
->response()
|
||||
->setStatusCode(200);
|
||||
} catch (\Exception $e) {
|
||||
@@ -68,7 +68,7 @@ class GlobalRealAssetController extends Controller
|
||||
public function globalResidentialRealEstateAllData($type = 'Open')
|
||||
{
|
||||
try {
|
||||
return (new test(Product::has('realEstate')->with('realEstate.photo')->globalResidentialRealEstate()->where('type', $type)->active()->get()))
|
||||
return (new test(Product::has('realEstate')->with('realEstate.photo','product_images')->globalResidentialRealEstate()->where('type', $type)->active()->get()))
|
||||
->response()
|
||||
->setStatusCode(200);
|
||||
} catch (\Exception $e) {
|
||||
@@ -79,7 +79,7 @@ class GlobalRealAssetController extends Controller
|
||||
public function globalCommercialRealEstateAllData($type = 'Open')
|
||||
{
|
||||
try {
|
||||
return (new test(Product::has('realEstate')->with('realEstate.photo')->globalCommercialRealEstate()->where('type', $type)->active()->get()))
|
||||
return (new test(Product::has('realEstate')->with('realEstate.photo','product_images')->globalCommercialRealEstate()->where('type', $type)->active()->get()))
|
||||
->response()
|
||||
->setStatusCode(200);
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user