| @@ 36-40 (lines=5) @@ | ||
| 33 | abort($error['status'], $error['message']); |
|
| 34 | } |
|
| 35 | ||
| 36 | if ( ! $report) |
|
| 37 | { |
|
| 38 | $error = $this->errorHandler->notFound('report'); |
|
| 39 | abort($error['status'], $error['message']); |
|
| 40 | } |
|
| 41 | return \DB::table($report->view_name)->get(); |
|
| 42 | } |
|
| 43 | ||
| @@ 63-67 (lines=5) @@ | ||
| 60 | $error = $this->errorHandler->noPermissions(); |
|
| 61 | abort($error['status'], $error['message']); |
|
| 62 | } |
|
| 63 | if ( ! $report) |
|
| 64 | { |
|
| 65 | $error = $this->errorHandler->notFound('report'); |
|
| 66 | abort($error['status'], $error['message']); |
|
| 67 | } |
|
| 68 | return \DB::table($report->view_name)->get(); |
|
| 69 | } |
|
| 70 | } |
|