wip
This commit is contained in:
parent
317d46abea
commit
5396f8d6de
|
@ -25,8 +25,8 @@ class DcatLogViewerServiceProvider extends ServiceProvider
|
|||
'middleware' => config('dcat-log-viewer.route.middleware'),
|
||||
], function ($router) {
|
||||
$router->get('/', ['as' => 'dcat-log-viewer', 'uses' => 'LogController@index',]);
|
||||
$router->get('download', ['as' => 'dcat-log-viewer.download', 'uses' => 'LogController@download',]);
|
||||
$router->get('{file}', ['as' => 'dcat-log-viewer.file', 'uses' => 'LogController@index',]);
|
||||
$router->get('download/{file}', ['as' => 'dcat-log-viewer.download', 'uses' => 'LogController@download',]);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,10 +35,11 @@ class LogController
|
|||
]);
|
||||
}
|
||||
|
||||
public function download($file = null)
|
||||
public function download()
|
||||
{
|
||||
$request = app('request');
|
||||
|
||||
$file = trim($request->get('file'));
|
||||
$dir = trim($request->get('dir'));
|
||||
$filename = trim($request->get('filename'));
|
||||
$keyword = trim($request->get('keyword'));
|
||||
|
|
Loading…
Reference in New Issue
Block a user