create new migration and bug fix another code for safty and privacy

This commit is contained in:
2025-08-30 14:07:53 +03:30
parent ab24f8502c
commit 125baa7511
9 changed files with 69 additions and 20 deletions

View File

@@ -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([