1.修改配置文件
.env中
LOG_CHANNEL=daily您可以通过运行此命令通过Composer安装此软件包:composer require arcanedev/log-viewer。
建立注意:如果您使用的是Laravel >= v5.5,程序包将自动注册,因此您可以跳过本节。
安装软件包后,您可以config/app.php在providers数组中注册服务提供者:
' providers ' => [ ... Arcanedev LogViewer LogViewerServiceProvider :: class,],无需注册LogViewer外观,它是自动完成的。
Artisan commandsTo publish the config and translations files, run this command:
php artisan log-viewer:publishTo force publishing
php artisan log-viewer:publish --forcePublishing the config only
php artisan log-viewer:publish --tag=configTo force publishing add --force flag.
Publishing the translations only
php artisan log-viewer:publish --tag=langTo force publishing add --force flag.
Application requirements & log files check
php artisan log-viewer:check完成后
http://{your-project}/log-viewer