alibayat/laravel-logviewer

使用 dataTables 在网页中显示 Laravel 日志文件

1.0 2021-05-29 06:45 UTC

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');

鸣谢