1 | <?php |
||
7 | class HomeController extends Controller |
||
8 | { |
||
9 | /* |
||
10 | |-------------------------------------------------------------------------- |
||
11 | | Home Controller |
||
12 | |-------------------------------------------------------------------------- |
||
13 | | |
||
14 | | This controller renders your application's "dashboard" for users that |
||
15 | | are authenticated. Of course, you are free to change or remove the |
||
16 | | controller as you wish. It is just here to get your app started! |
||
17 | | |
||
18 | */ |
||
19 | |||
20 | /** |
||
21 | * Create a new controller instance. |
||
22 | * |
||
23 | * @return void |
||
|
|||
24 | */ |
||
25 | public function __construct() |
||
29 | |||
30 | /** |
||
31 | * Show the application dashboard to the user. |
||
32 | * |
||
33 | * @return Response |
||
34 | */ |
||
35 | public function index() |
||
40 | |||
41 | public function getdata() |
||
45 | |||
46 | public function getreport() |
||
50 | |||
51 | public function pushdata() |
||
76 | } |
||
77 |
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.