create new migration and bug fix another code for safty and privacy
This commit is contained in:
@@ -64,7 +64,10 @@ class HomeContentController extends Controller
|
||||
|
||||
public function getAllCitiesByProvince($id)
|
||||
{
|
||||
$cities = \App\Models\City::where('province_id', $id)->where('type_id', 1)->get();
|
||||
$cities = \App\Models\City::query()
|
||||
->where('province_id', $id)
|
||||
->where('type_id', 1)
|
||||
->get(['id', 'name_fa', 'province_id','center_lat','center_lng']);
|
||||
// $cities = \App\Models\City::where('province_id', $id)->get();
|
||||
|
||||
return response()->json([
|
||||
|
||||
Reference in New Issue
Block a user