1 | <?php |
||
8 | class ProvincesController extends Controller |
||
9 | { |
||
10 | /** |
||
11 | * @var ProvincesRepository |
||
12 | */ |
||
13 | protected $repository; |
||
14 | |||
15 | /** |
||
16 | * ProvincesController constructor. |
||
17 | * |
||
18 | * @param ProvincesRepository $repository |
||
19 | */ |
||
20 | public function __construct(ProvincesRepository $repository) |
||
24 | |||
25 | /** |
||
26 | * Get all provinces. |
||
27 | * |
||
28 | * @return \Illuminate\Database\Eloquent\Collection |
||
29 | */ |
||
30 | public function all() |
||
34 | |||
35 | /** |
||
36 | * Get province by region Id. |
||
37 | * |
||
38 | * @param string $regionId |
||
39 | * @return \Illuminate\Database\Eloquent\Collection |
||
40 | */ |
||
41 | public function getByRegion($regionId) |
||
45 | } |
||
46 |