From 6a7d3b05dafe4a88ddcc048fc373c54d6be455c5 Mon Sep 17 00:00:00 2001 From: sayliraut Date: Wed, 17 Jul 2024 12:45:41 +0530 Subject: [PATCH] changes --- app/Services/APIs/CustomerAPIs/RestaurantApiServices.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php b/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php index 8b67c59..cd78742 100644 --- a/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php +++ b/app/Services/APIs/CustomerAPIs/RestaurantApiServices.php @@ -180,7 +180,7 @@ class RestaurantApiServices public function DetailRestaurant($customerIamId, $id) { try { - $rest = ManageRestaurant::select('id', 'short_id', 'name', 'description', 'restaurant_id', 'address', 'image', 'bio', 'try_on_1', 'try_on_2', 'try_on_3', 'try_on_4', 'exclusion', 'latitude', 'longtitude', 'state_xid') + $rest = ManageRestaurant::with('closedRestaurant')->select('id', 'short_id', 'name', 'description', 'restaurant_id', 'address', 'image', 'bio', 'try_on_1', 'try_on_2', 'try_on_3', 'try_on_4', 'exclusion', 'latitude', 'longtitude', 'state_xid') ->where('short_id', $id) ->where('is_active', '1') ->first(); @@ -540,7 +540,7 @@ Log::info($restAllowedRedeemTime); public function searchRestaurant($customerIamId, $request) { try { - $restaurantsQuery = ManageRestaurant::with('state') + $restaurantsQuery = ManageRestaurant::with('state','closedRestaurant') ->where('is_active', '1'); $searchData = $request->input('search_data');