berthott / laravel-mail-logging
Laravel 辅助工具,用于安排模型相关任务
3.0.0
2023-02-24 10:12 UTC
Requires (Dev)
- orchestra/testbench: ^8.0
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2024-09-28 08:51:00 UTC
README
Laravel 辅助工具,用于记录发出的邮件。
安装
$ composer require berthott/laravel-mail-logging
使用方法
- 您只需要安装此包,就会在
storage/logs/mail.log
文件中生成,为您提供有关发出的邮件的一些见解。
选项
要更改默认选项,请使用
$ php artisan vendor:publish --provider="berthott\MailLogging\MailLoggingServiceProvider" --tag="config"
您可以根据 Laravel 文档 指定邮件记录通道。默认为
'driver' => 'single', 'path' => storage_path('logs/mail.log'), 'level' => 'debug',
兼容性
在 Laravel 10.x 上进行了测试。
许可证
请参阅 许可证文件。版权 © 2023 Jan Bladt。