PHP code example of designmynight / laravel-log-mailer
1. Go to this page and download the library: Download designmynight/laravel-log-mailer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
designmynight / laravel-log-mailer example snippets
'channels' => [
'stack' => [
'driver' => 'stack',
// Add mail to the stack:
'channels' => ['single', 'mail'],
],
// ...
// Create a mail logging channel:
'mail' => [
'driver' => 'mail',
// Specify who to mail the log to
'to' => [
[
'address' => '[email protected]',
'name' => 'Error'
]
],
// Optionally specify who the log mail was sent by
// This is overidable in config/mailablelog.php and
// falls back to your global from in config/mail.php
'from' => [
'address' => '[email protected]',
'name' => 'Errors'
],
// Optionally overwrite the mailable template
// 'mailable' => NewLogMailable::class
],
],
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.