Download the PHP package shaffe/laravel-mail-log-channel without Composer
On this page you can find all versions of the php package shaffe/laravel-mail-log-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shaffe/laravel-mail-log-channel
More information about shaffe/laravel-mail-log-channel
Files in shaffe/laravel-mail-log-channel
Package laravel-mail-log-channel
Short Description A package to support logging via email in Laravel
License MIT
Homepage https://github.com/shaffe-fr/laravel-mail-log-channel
Informations about the package laravel-mail-log-channel
Laravel Mail Log Channel
A service provider to add support for logging via email using Laravels built-in mail provider.
This package is a fork of laravel-log-mailer by Steve Porter.
Table of contents
- Installation
- Configuration
Installation
You can install this package via composer using this commande:
Laravel version compatibility
Laravel | Package |
---|---|
6, 7, 8, 9, 10, 11 | ^2.0 |
5.6.x | ^1.0 |
The package will automatically register itself if you use Laravel.
For usage with Lumen, add the service provider in bootstrap/app.php
.
Configuration
To ensure all unhandled exceptions are mailed:
- create a
mail
logging channel inconfig/logging.php
, - add this
mail
channel to your current logging stack, - add a
LOG_MAIL_ADDRESS
to your.env
file to define the recipient.
You can specify multiple channels and individually change the recipients, the subject and the email template.
Recipients configuration format
The following to
config formats are supported:
-
single email address:
-
array of email addresses:
-
associative array of email => name addresses:
- array of email and name:
All versions of laravel-mail-log-channel with dependencies
illuminate/contracts Version ^5.6|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/log Version ^5.6|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/mail Version ^5.6|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/queue Version ^5.6|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^5.6|^6.0|^7.|^8.00|^9.0|^10.|^11.00