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

            $this->delete('delete', 'LogViewerController@delete')
                 ->name('delete'); // log-viewer::logs.delete

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

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

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

                $this->get('{level}/search', 'LogViewerController@search')
                     ->name('search'); // log-viewer::logs.search
            });
        });
    }
private function mapLogsRoutes()
    {
        $this->prefix('logs')->name('logs.')->group(function() {
            $this->get('/', 'LogViewerController@listLogs')
                 ->name('list'); // log-viewer::logs.list

            $this->delete('delete', 'LogViewerController@delete')
                 ->name('delete'); // log-viewer::logs.delete

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

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

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

                $this->get('{level}/search', 'LogViewerController@search')
                     ->name('search'); // log-viewer::logs.search
            });
        });
    }
private function mapLogsRoutes ( ) { $ this -> prefix ( 'logs' ) -> name ( 'logs.' ) -> group ( function ( ) { $ this -> get ( '/' , 'LogViewerController@listLogs' ) -> name ( 'list' ) ; // log-viewer::logs.list $ this -> delete ( 'delete' , 'LogViewerController@delete' ) -> name ( 'delete' ) ; // log-viewer::logs.delete $ this -> prefix ( '{date}' ) -> group ( function ( ) { $ this -> get ( '/' , 'LogViewerController@show' ) -> name ( 'show' ) ; // log-viewer::logs.show $ this -> get ( 'download' , 'LogViewerController@download' ) -> name ( 'download' ) ; // log-viewer::logs.download $ this -> get ( '{level}' , 'LogViewerController@showByLevel' ) -> name ( 'filter' ) ; // log-viewer::logs.filter $ this -> get ( '{level}/search' , 'LogViewerController@search' ) -> name ( 'search' ) ; // log-viewer::logs.search } ) ; } ) ; }
Map the logs routes.
Map the logs routes .