1 | <?php |
||
25 | class ProvinceController extends Controller |
||
26 | { |
||
27 | protected $indonesia; |
||
28 | protected $province; |
||
29 | protected $city; |
||
30 | protected $district; |
||
31 | protected $village; |
||
32 | |||
33 | /** |
||
34 | * Create a new controller instance. |
||
35 | * |
||
36 | * @return void |
||
|
|||
37 | */ |
||
38 | public function __construct() |
||
46 | |||
47 | /** |
||
48 | * Display a listing of the resource. |
||
49 | * |
||
50 | * @return \Illuminate\Http\Response |
||
51 | */ |
||
52 | public function get() |
||
67 | |||
68 | /** |
||
69 | * Display the specified resource. |
||
70 | * |
||
71 | * @param \App\Province $province |
||
72 | * @return \Illuminate\Http\Response |
||
73 | */ |
||
74 | public function show($id) |
||
87 | } |
||
88 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.