1 | <?php |
||
7 | class HomeController extends Controller |
||
8 | { |
||
9 | /** |
||
10 | * Create a new controller instance. |
||
11 | * |
||
12 | * @return void |
||
|
|||
13 | */ |
||
14 | public function __construct() |
||
18 | |||
19 | /** |
||
20 | * Show the application dashboard. |
||
21 | * |
||
22 | * @return \Illuminate\Contracts\Support\Renderable |
||
23 | */ |
||
24 | public function index() |
||
28 | } |
||
29 |
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.