PHPackages                             lobotomised/laravel-mailable-exception - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. lobotomised/laravel-mailable-exception

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

lobotomised/laravel-mailable-exception
======================================

Send any exception to an email

1.1.0(9mo ago)1704[4 PRs](https://github.com/lobotomised/laravel-mailable-exception/pulls)MITBladePHP ^8.2CI passing

Since Aug 13Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/lobotomised/laravel-mailable-exception)[ Packagist](https://packagist.org/packages/lobotomised/laravel-mailable-exception)[ Docs](https://github.com/lobotomised/laravel-mailable-exception)[ RSS](/packages/lobotomised-laravel-mailable-exception/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (12)Versions (10)Used By (0)

Send any exception to an email
==============================

[](#send-any-exception-to-an-email)

[![Latest Version on Packagist](https://camo.githubusercontent.com/07c2b0cbfa194705ffb35edead481ae9a2bd9566a841f947bbf04413f05dc0d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f626f746f6d697365642f6c61726176656c2d6d61696c61626c652d657863657074696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lobotomised/laravel-mailable-exception)[![GitHub Tests Action Status](https://camo.githubusercontent.com/967a21ae399718888452d2dcdc099b512f992c38ef37656f37ffdcd568752ff7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6f626f746f6d697365642f6c61726176656c2d6d61696c61626c652d657863657074696f6e2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/lobotomised/laravel-mailable-exception/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/e180ab0ad2787f56c62395a5b64a3293b24c16e4f1e4997a1cbb32dedb59b901/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6f626f746f6d697365642f6c61726176656c2d6d61696c61626c652d657863657074696f6e2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/lobotomised/laravel-mailable-exception/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/b039ed669a858f594e0f01a5ef1e237d5c1181372520c9f1954fa7a53f380956/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f626f746f6d697365642f6c61726176656c2d6d61696c61626c652d657863657074696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lobotomised/laravel-mailable-exception)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation
------------

[](#installation)

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', 'hello@example.com'),
        'name' => env('MAIL_FROM_NAME', 'Example'),
    ],
    'to' => [
        'address' => 'your@example.com',
    ],
    'subject' => 'An exception has occurred',
    'allowed_environments' => ['production'],
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-mailable-exception-views"
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance74

Regular maintenance activity

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~116 days

Total

4

Last Release

288d ago

PHP version history (2 changes)1.0.0PHP ^8.1

1.1.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe4805f3bac92a9671c86a70ac57b88556008a45856752b187b29fe24cc36b9d?d=identicon)[lobotomised](/maintainers/lobotomised)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![lobotomised](https://avatars.githubusercontent.com/u/34192441?v=4)](https://github.com/lobotomised "lobotomised (2 commits)")

---

Tags

laravelexceptionmailablelaravel-mailable-exception

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/lobotomised-laravel-mailable-exception/health.svg)

```
[![Health](https://phpackages.com/badges/lobotomised-laravel-mailable-exception/health.svg)](https://phpackages.com/packages/lobotomised-laravel-mailable-exception)
```

###  Alternatives

[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k49.4M479](/packages/laravel-scout)[illuminate/notifications

The Illuminate Notifications package.

483.0M967](/packages/illuminate-notifications)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
