diff --git a/README.md b/README.md index f2f5cac..c065fe2 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,10 @@ Get full documentation of [Laravel Log Reader](https://laravelarticle.com/larave - [Laravel ID generator](https://github.com/haruncpi/laravel-id-generator) - A laravel package for custom database ID generation. - [Laravel Simple Filemanager](https://github.com/haruncpi/laravel-simple-filemanager) - A simple filemanager for Laravel. - [Laravel Option Framework](https://github.com/haruncpi/laravel-option-framework) - Option framework for Laravel. + + +## Change Log + +v1.0.6 +- Custom middleware support. +- Minor UI changes. diff --git a/assets/style.css b/assets/style.css index 6eaa7c6..574944f 100644 --- a/assets/style.css +++ b/assets/style.css @@ -23,6 +23,10 @@ header { top: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); } +header .btn_clear_all { + background: #de4f4f; + color: #fff; +} header .name { font-size: 25px; font-weight: 500; @@ -81,6 +85,9 @@ table tr { border: 1px solid #e8e8e8; padding: 5px; } +table tr:hover { + background: #f4f4f4; +} thead tr td { background: #717171; color: #fff; diff --git a/assets/style.less b/assets/style.less index 7c364d7..e88d639 100644 --- a/assets/style.less +++ b/assets/style.less @@ -24,6 +24,11 @@ header { right: 0; top: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); + + .btn_clear_all{ + background: #de4f4f; + color: #fff; + } } header .name { @@ -97,6 +102,9 @@ table { table tr { border: 1px solid #e8e8e8; padding: 5px; + &:hover{ + background:#f4f4f4; + } } thead tr td { diff --git a/config/laravel-log-reader.php b/config/laravel-log-reader.php index c3a71b2..9cf3306 100644 --- a/config/laravel-log-reader.php +++ b/config/laravel-log-reader.php @@ -1,7 +1,8 @@ 'admin/api/log-reader', - 'view_route_path' => 'admin/log-reader', + 'api_route_path' => 'admin/api/log-reader', + 'view_route_path' => 'admin/log-reader', 'admin_panel_path' => 'admin', + 'middleware' => ['web', 'auth'] ]; \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 9751ef3..e1f0168 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,8 +1,10 @@ 'Haruncpi\LaravelLogReader\Controllers', 'middleware' => ['web','auth']], function () { +Route::group([ + 'namespace' => '\Haruncpi\LaravelLogReader\Controllers', + 'middleware' => config('laravel-log-reader.middleware') + ], function () { Route::get(config('laravel-log-reader.view_route_path'), 'LogReaderController@getIndex'); Route::post(config('laravel-log-reader.view_route_path'), 'LogReaderController@postDelete'); Route::get(config('laravel-log-reader.api_route_path'), 'LogReaderController@getLogs'); - -}); +}); \ No newline at end of file diff --git a/views/index.blade.php b/views/index.blade.php index 00a0bdd..a123d2a 100644 --- a/views/index.blade.php +++ b/views/index.blade.php @@ -41,7 +41,10 @@ top: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); } - + header .btn_clear_all { + background: #de4f4f; + color: #fff; + } header .name { font-size: 25px; font-weight: 500; @@ -110,7 +113,9 @@ border: 1px solid #e8e8e8; padding: 5px; } - + table tr:hover { + background: #f4f4f4; + } thead tr td { background: #717171; color: #fff; @@ -259,7 +264,7 @@
@{{ title }}
- Clear All + Clear All Goto Admin Panel Doc