src/Http/Controllers/Adminarea/RoutesController.php
public function index(RoutesDataTable $routesDataTable)
    {
        $middlewareClosure = function ($middleware) {
            return $middleware instanceof Closure ? 'Closure' : $middleware;
        };

        return $routesDataTable->with([
            'id' => 'adminarea-routes-index-table',
            'middlewareClosure' => $middlewareClosure,
        ])->render('cortex/foundation::adminarea.pages.datatable-index');
    }
public function index(RoutesDataTable $routesDataTable)
    {
        $middlewareClosure = function ($middleware) {
            return $middleware instanceof Closure ? 'Closure' : $middleware;
        };

        return $routesDataTable->with([
            'id' => 'adminarea-routes-index-table',
            'middlewareClosure' => $middlewareClosure,
        ])->render('cortex/foundation::adminarea.pages.datatable-index');
    }
public function index ( RoutesDataTable $ routesDataTable ) { $ middlewareClosure = function ( $ middleware ) { return $ middleware instanceof Closure ? 'Closure' : $ middleware ; } ; return $ routesDataTable -> with ( [ 'id' => 'adminarea-routes-index-table' , 'middlewareClosure' => $ middlewareClosure , ] ) -> render ( 'cortex/foundation::adminarea.pages.datatable-index' ) ; }
List all routes.

@param \Cortex\Console\DataTables\Adminarea\RoutesDataTable $routesDataTable

@return \Illuminate\Http\JsonResponse|\Illuminate\View\View
List all routes .