DONE: add password on laravel log viewer

This commit is contained in:
ISMAIL MASSERAN
2026-09-28 16:26:50 +08:00
parent 3a86ba5b26
commit b8e3e2b369
7 changed files with 60 additions and 4 deletions
+4 -1
View File
@@ -25,7 +25,10 @@ $router->get('/health', function () {
return response()->json(['status' => 'ok']);
});
$router->group(['namespace' => '\Rap2hpoutre\LaravelLogViewer'], function() use ($router) {
$router->group([
'namespace' => '\Rap2hpoutre\LaravelLogViewer',
'middleware' => 'logviewer.password',
], function () use ($router) {
$router->get('logs', 'LogViewerController@index');
});