| 1 | <?php |
||
| 8 | class ReportsController extends BaseApiController |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The name of the model that is used by the base api controller |
||
| 12 | * to preform actions like (add, edit ... etc). |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $model = 'reports'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * List of all route actions that the base api controller |
||
| 19 | * will skip permissions check for them. |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $skipPermissionCheck = ['getReport']; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Render the total income report db view between the given two dates. |
||
| 26 | * |
||
| 27 | * @param \Illuminate\Http\Request $request |
||
| 28 | * @param string $reportName |
||
| 29 | * @param integer $perPage |
||
| 30 | * @return \Illuminate\Http\Response |
||
| 31 | */ |
||
| 32 | public function getReport(Request $request, $reportName, $perPage = 0) |
||
| 39 | } |
||
| 40 |