Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function __invoke($channel, $filename) |
||
19 | { |
||
20 | $this->authorize('viewAny', AppSettings::class); |
||
21 | |||
22 | $channel = $this->getChannelDetails($channel); |
||
23 | if(!$channel) |
||
24 | { |
||
25 | abort(404); |
||
26 | } |
||
27 | |||
28 | $fileArr = $this->getFileToArray($filename, $channel); |
||
29 | |||
30 | return Inertia::render('Logs/Show', [ |
||
31 | 'levels' => $this->logLevels, |
||
32 | 'channel' => $channel, |
||
33 | 'filename' => $filename, |
||
34 | 'stats' => [$this->getFileStats($fileArr, $filename)], |
||
35 | 'log_file' => $this->parseFile($fileArr), |
||
36 | ]); |
||
39 |