1 | <?php |
||
5 | class HomeController extends Controller |
||
6 | { |
||
7 | /** |
||
8 | * Create a new controller instance. |
||
9 | * |
||
10 | * @return void |
||
|
|||
11 | */ |
||
12 | public function __construct() |
||
16 | |||
17 | /** |
||
18 | * Show the application homepage. |
||
19 | * |
||
20 | * @return \Illuminate\Http\Response |
||
21 | */ |
||
22 | public function index() |
||
26 | |||
27 | /** |
||
28 | * Show the application dashboard. |
||
29 | * |
||
30 | * @return \Illuminate\Http\Response |
||
31 | */ |
||
32 | public function showDashboard() |
||
36 | } |
||
37 |
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.