| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function index(RoutesDataTable $routesDataTable) |
||
| 26 | { |
||
| 27 | $middlewareClosure = function ($middleware) { |
||
| 28 | return $middleware instanceof Closure ? 'Closure' : $middleware; |
||
| 29 | }; |
||
| 30 | |||
| 31 | return $routesDataTable->with([ |
||
| 32 | 'id' => 'adminarea-routes-index-table', |
||
| 33 | 'middlewareClosure' => $middlewareClosure, |
||
| 34 | 'phrase' => trans('cortex/console::common.routes'), |
||
| 35 | ])->render('cortex/foundation::adminarea.pages.datatable'); |
||
| 36 | } |
||
| 37 | } |
||
| 38 |