git commit "complete auth pages layout without header hero and footer"
This commit is contained in:
@@ -6,12 +6,8 @@ use App\Models\City;
|
||||
|
||||
class CityController extends Controller
|
||||
{
|
||||
public function byProvince(int $province)
|
||||
public function byProvince($province)
|
||||
{
|
||||
$cities = City::where('provinces_id', $province)
|
||||
->orderBy('name')
|
||||
->get();
|
||||
|
||||
return response()->json($cities);
|
||||
return City::where('province_id', $province)->get();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user