Files
hatame.andarza09/app/Http/Controllers/CityController.php
T
hatame 947d2425d9 git add .
git commit "fix: city selection, comment user display, and back button bug"
2026-08-22 09:13:09 +03:30

17 lines
301 B
PHP

<?php
namespace App\Http\Controllers;
use App\Models\City;
use App\Models\Province;
class CityController extends Controller
{
public function byProvince( Province $province)
{
return response()->json(
$province->cities()->select('id', 'name')->get()
);
}
}