This commit is contained in:
gholak tala
2026-01-24 14:03:11 +00:00
parent 7dcd83715a
commit eb26afbcb3
224 changed files with 32652 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace App\Http\Controllers\Site;
use App\Http\Controllers\Controller;
use App\Models\City;
use Illuminate\Http\Request;
class CityController extends Controller
{
public function stateList(){
$city = City::whereNull('parent_id')->get();
return response()->json($city);
}
public function cityList($state_id){
$city = City::where('parent_id',$state_id)->get();
return response()->json($city);
}
public function cityListAll(){
$city = City::all();
return response()->json($city);
}
}