added companies and product image

This commit is contained in:
Ritikesh yadav
2024-06-13 15:17:51 +05:30
parent 1cd590d6b8
commit 329dcaca2e
9 changed files with 13 additions and 13 deletions

View File

@@ -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) {