1 | <?php |
||
8 | class CitiesController extends Controller |
||
9 | { |
||
10 | /** |
||
11 | * @var CitiesRepository |
||
12 | */ |
||
13 | protected $repository; |
||
14 | |||
15 | /** |
||
16 | * CitiesController constructor. |
||
17 | * |
||
18 | * @param CitiesRepository $repository |
||
19 | */ |
||
20 | public function __construct(CitiesRepository $repository) |
||
24 | |||
25 | /** |
||
26 | * Get cities by province. |
||
27 | * |
||
28 | * @param string $provinceId |
||
29 | * @return \Illuminate\Database\Eloquent\Collection |
||
30 | */ |
||
31 | public function getByProvince($provinceId) |
||
35 | |||
36 | /** |
||
37 | * Get cities by region and province Id. |
||
38 | * |
||
39 | * @param string $regionId |
||
40 | * @param string $provinceId |
||
41 | * @return \Illuminate\Database\Eloquent\Collection |
||
42 | */ |
||
43 | public function getByRegionAndProvince($regionId, $provinceId) |
||
47 | } |
||
48 |