| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function __invoke($channel = null) |
||
| 20 | { |
||
| 21 | $this->authorize('viewAny', AppSettings::class); |
||
| 22 | |||
| 23 | $props = []; |
||
| 24 | |||
| 25 | if(!is_null($channel)) |
||
| 26 | { |
||
| 27 | $props = [ |
||
| 28 | 'channel' => $channel, |
||
| 29 | 'log_files' => $this->getChannelStats($channel), |
||
| 30 | 'levels' => $this->logLevels, |
||
| 31 | ]; |
||
| 32 | } |
||
| 33 | |||
| 34 | $props['channels'] = Arr::pluck($this->logChannels, 'name'); |
||
| 35 | |||
| 36 | return Inertia::render('Logs/Index', $props); |
||
| 37 | } |
||
| 39 |