brunocouty / laravel-logs-viewer
在您的应用程序中轻松读取 Laravel 日志的库!
1.1.1
2018-10-18 06:21 UTC
Requires
- php: >=5.5.9
- illuminate/contracts: ~5.1
- illuminate/database: ~5.1
- illuminate/http: ~5.1
- illuminate/support: ~5.1
This package is not auto-updated.
Last update: 2024-09-29 03:20:42 UTC
README
此库提供了一种友好的界面来查看和分析 Laravel 的日志。
安装
composer require brunocouty/laravel-logs-viewer
在您的 config/app.php 文件中,向 "provider" 数组中添加
\BrunoCouty\LaravelViewLogs\LaravelLogsViewerServiceProvider::class,
并向 'aliases' 数组中添加
'LaravelLogsViewer' => \BrunoCouty\LaravelViewLogs\LaravelLogsViewerFacade::class,
您需要发布资源(css 和 js 文件)
php artisan vendor:publish --tag=public
在您的 路由文件 中添加
LaravelLogsViewer::routes();
注意:如果您想通过中间件或分组保护您的路由,请使用类似
Route::group(['prefix' => 'your-group', 'middleware' => 'auth'], function () { LaravelLogsViewer::routes(); });
用法
要使用此库,您需要访问应用程序中的 "/logs" 路由。
http://127.0.0.1:8000/logs // or http://127.0.0.1:8000/your-group/logs
定制
要定制此库的视图,发布
php artisan vendor:publish
返回
Copied Directory [/modules/brunocouty/laravel-logs-viewer/src/resources/views] To [/resources/views] Copied Directory [/modules/brunocouty/laravel-logs-viewer/src/resources/assets] To [/public/vendor/laravel-logs-viewer]
视图位于: "resources/views/logs"。
css 和 js 文件位于: "public/vendor/laravel-logs-viewer"。
喜欢这个内容?请给我一杯咖啡!
是的!你喜欢这个包吗?请给我一杯咖啡,帮助我保持这个包的更新!
当你支持我时,你可以访问 独家文章,其中包含大量关于 PHP、Laravel、AngularJS、VueJS、Ionic 以及更多精彩内容!你将看到如何创建自己的 PHP 包,解决代码中的错误... 内容很棒!
只需每月1美元,你就可以访问我的私人内容!而且,如果你需要帮助编写项目代码,我可以帮助你!访问我的 Patreon 个人资料,我可以通过电子邮件或 Skype 帮助你!
