6302570d75
git commit "Implement authentication flow and initialize home page hero section"
18 lines
300 B
PHP
18 lines
300 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\City;
|
|
use Illuminate\Http\Request;
|
|
|
|
class CityController extends Controller
|
|
{
|
|
//
|
|
public function getCities($province)
|
|
{
|
|
return City::where('province_id', $province)
|
|
->orderBy('name')
|
|
->get();
|
|
}
|
|
}
|