Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function index( |
||
15 | ): \Illuminate\Foundation\Application|\Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\Foundation\Application|null |
||
16 | { |
||
17 | if (request()->get('endpoint')) { |
||
18 | $logs = LaraClientLog::where('endpoint', request()->get('endpoint'))->orderBy('created_at', |
||
19 | 'desc')->paginate(10); |
||
20 | } else { |
||
21 | $logs = LaraClientLog::orderBy('created_at', 'desc')->paginate(10); |
||
22 | } |
||
23 | return view('laraclient::logs.index', compact('logs')); |
||
24 | } |
||
26 |