lobotomised/laravel-mailable-exception is a Laravel package for send any exception to an email.
It currently has 1 GitHub stars and 775 downloads on Packagist (latest version 1.2.0).
Install it with composer require lobotomised/laravel-mailable-exception.
Discover more Laravel packages by lobotomised
or browse all Laravel packages to compare alternatives.
Last updated
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
You can install the package via composer:
composer require lobotomised/laravel-mailable-exception
Modifier App\Exceptions\Handler;
public function register(): void
{
$this->reportable(function (Throwable $e) {
(new LaravelMailableException)->toMail($e);
});
}
You can publish the config file with:
php artisan vendor:publish --tag="laravel-mailable-exception-config"
This is the contents of the published config file:
return [
'from' => [
'address' => env('MAIL_FROM_ADDRESS', '[email protected]'),
'name' => env('MAIL_FROM_NAME', 'Example'),
],
'to' => [
'address' => '[email protected]',
],
'subject' => 'An exception has occurred',
'allowed_environments' => ['production'],
];
Optionally, you can publish the views using
php artisan vendor:publish --tag="laravel-mailable-exception-views"
The MIT License (MIT). Please see License File for more information.