1 | <?php |
||
10 | class ReportController extends BaseApiController |
||
11 | { |
||
12 | /** |
||
13 | * List of all route actions that the base api controller |
||
14 | * will skip permissions check for them. |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $skipPermissionCheck = ['getReport']; |
||
18 | |||
19 | /** |
||
20 | * Init new object. |
||
21 | * |
||
22 | * @param ReportRepository $repo |
||
23 | * @param CoreConfig $config |
||
24 | * @return void |
||
|
|||
25 | */ |
||
26 | public function __construct(ReportRepository $repo, CoreConfig $config) |
||
30 | |||
31 | /** |
||
32 | * Render the given report name with the given conditions. |
||
33 | * |
||
34 | * @param Request $request |
||
35 | * @param string $reportName Name of the requested report |
||
36 | * @return \Illuminate\Http\Response |
||
37 | */ |
||
38 | public function getReport(Request $request, $reportName) |
||
42 | } |
||
43 |
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.