siantech / laravel-logmailer
每小时发送您的 Laravel 项目日志文件到电子邮件。
1.0.0
2023-02-27 21:19 UTC
Requires
- php: >=8.1
- illuminate/console: ^9.0|^10.0
- illuminate/mail: ^9.0|^10.0
- illuminate/queue: ^9.0|^10.0
- illuminate/support: ^9.0|^10.0
README
Laravel LogMailer
Laravel LogMailer 是一个简单工具,允许您的应用程序将日志文件发送到您的电子邮件地址。它配置非常简单,只需几个简单步骤即可启动运行。
安装
要安装,只需运行 composer require siantech/laravel-logmailer
配置
- 运行
php artisan vendor:publish --tag=siantech-logmailer
以发布配置和视图。电子邮件视图有意留空,以便您可以按需自定义。 - 在
config/logmailer.php
中更新您的to
电子邮件地址和(可选)subject
。 - 在
app/Console/Kernel.php
中,安排您希望多久接收一次日志。例如,如果您想每小时接收一次,请使用$schedule->command('siantech:logmailer')->hourly();
阅读 Laravel 调度频率选项文档。