| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function index(Request $request) |
||
| 20 | { |
||
| 21 | $query = LogEntry::where('level', '>=', Logger::INFO) |
||
| 22 | ->orderBy('id', 'desc') |
||
| 23 | ->limit(200); |
||
| 24 | |||
| 25 | $filters = []; |
||
| 26 | |||
| 27 | if ($request->has('library')) { |
||
| 28 | $query->where('context', '@>', '{"library": "' . $request->library . '"}'); |
||
| 29 | $filters[] = 'library:' . $request->library; |
||
| 30 | } |
||
| 31 | |||
| 32 | return response()->view('logs.index', [ |
||
| 33 | 'entries' => $query->get(), |
||
| 34 | 'filters' => $filters, |
||
| 35 | ]); |
||
| 38 |