alibayat/laravel-logviewer
使用 dataTables 在网页中显示 Laravel 日志文件
1.0
2021-05-29 06:45 UTC
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*|5.*|^6.0|^7.0|^8.0
Requires (Dev)
- orchestra/testbench: 3.7.*
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-09-18 19:02:02 UTC
README
此包可以用于在网页中使用 Bootstrap 和 DataTables 显示 Laravel 日志文件。它可以与 Laravel/Lumen 4.2+ 版本一起使用,直到最新版本。此包是从著名的 Log-Viewer 包中衍生出来的,仅作了一些小的修改。
要求
- PHP 5.4+
- Laravel 4.2+
安装
Composer 安装
composer require alibayat/laravel-logviewer
发布配置
php artisan vendor:publish \
--provider="AliBayat\LaravelLogViewer\LaravelLogViewerServiceProvider"
发布视图文件
php artisan vendor:publish \
--provider="AliBayat\LaravelLogViewer\LaravelLogViewerServiceProvider" \
--tag=views
用法
您可以使用任何路由来指向包中包含的控制器索引方法
Route::get('logs', '\AliBayat\LaravelLogViewer\LogViewerController@index');
鸣谢
- Ali Bayat - ali.bayat@live.com