src/Http/Routes/Admin/SystemRoutes.php
private function registerLogViewerRoutes()
    {
        $this->prefix('log-viewer')->name('log-viewer.')->group(function () {
            $this->get('/', 'LogViewerController@index')
                 ->name('index'); // admin::foundation.system.log-viewer.index

            $this->prefix('logs')->name('logs.')->group(function() {
                $this->get('/', 'LogViewerController@listLogs')
                     ->name('list'); // admin::foundation.system.log-viewer.logs.list

                $this->prefix('{logviewer_log_date}')->group(function () {
                    $this->get('/', 'LogViewerController@show')
                         ->name('show'); // admin::foundation.system.log-viewer.logs.show

                    $this->get('download', 'LogViewerController@download')
                         ->name('download'); // admin::foundation.system.log-viewer.logs.download

                    $this->get('{level}', 'LogViewerController@showByLevel')
                         ->name('filter'); // admin::foundation.system.log-viewer.logs.filter

                    $this->get('{level}/search', 'LogViewerController@search')
                         ->name('search'); // admin::foundation.system.log-viewer.logs.search

                    $this->delete('delete', 'LogViewerController@delete')
                         ->middleware('ajax')
                         ->name('delete'); // admin::foundation.system.log-viewer.logs.delete
                });
            });
        });
    }
private function registerLogViewerRoutes()
    {
        $this->prefix('log-viewer')->name('log-viewer.')->group(function () {
            $this->get('/', 'LogViewerController@index')
                 ->name('index'); // admin::foundation.system.log-viewer.index

            $this->prefix('logs')->name('logs.')->group(function() {
                $this->get('/', 'LogViewerController@listLogs')
                     ->name('list'); // admin::foundation.system.log-viewer.logs.list

                $this->prefix('{logviewer_log_date}')->group(function () {
                    $this->get('/', 'LogViewerController@show')
                         ->name('show'); // admin::foundation.system.log-viewer.logs.show

                    $this->get('download', 'LogViewerController@download')
                         ->name('download'); // admin::foundation.system.log-viewer.logs.download

                    $this->get('{level}', 'LogViewerController@showByLevel')
                         ->name('filter'); // admin::foundation.system.log-viewer.logs.filter

                    $this->get('{level}/search', 'LogViewerController@search')
                         ->name('search'); // admin::foundation.system.log-viewer.logs.search

                    $this->delete('delete', 'LogViewerController@delete')
                         ->middleware('ajax')
                         ->name('delete'); // admin::foundation.system.log-viewer.logs.delete
                });
            });
        });
    }
Register LogViewer routes.