PHPackages                             designmynight/laravel-log-mailer - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. designmynight/laravel-log-mailer

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

designmynight/laravel-log-mailer
================================

A package to support logging via email in Laravel

v2.0.0(2y ago)1538.7k↓29.5%8[1 issues](https://github.com/designmynight/laravel-log-mailer/issues)[1 PRs](https://github.com/designmynight/laravel-log-mailer/pulls)MITPHP

Since Sep 4Pushed 2y ago2 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Laravel Mail Logger
===================

[](#laravel-mail-logger)

[![Latest Stable Version](https://camo.githubusercontent.com/6e4c4f51caf84dd8e6ae7c869026811a31cdfea835f44a4b5b56363fa3531486/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f64657369676e6d796e696768742f6c61726176656c2d6c6f672d6d61696c65722e737667)](https://packagist.org/packages/designmynight/laravel-log-mailer) [![Total Downloads](https://camo.githubusercontent.com/cdd311113a4c155c71cec9c8b0b2a19735b0b28cc6428796994f14826b2d3c9b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f64657369676e6d796e696768742f6c61726176656c2d6c6f672d6d61696c65722e737667)](https://packagist.org/packages/designmynight/laravel-log-mailer)[![StyleCI](https://camo.githubusercontent.com/ecb65959c592c640bb8495b63a9f44972193b0718681ea16eb1e6fee0a913775/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3134373432343033372f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/147424037)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

A service provider to add support for logging via email using Laravels built-in mail provider

[![image](https://user-images.githubusercontent.com/12199424/45576336-a93c1300-b86e-11e8-9575-d1e4c5ed5dec.png)](https://user-images.githubusercontent.com/12199424/45576336-a93c1300-b86e-11e8-9575-d1e4c5ed5dec.png)

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Configuration](#configuration)

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

[](#installation)

Installation using composer:

```
composer require designmynight/laravel-log-mailer
```

### Laravel version Compatibility

[](#laravel-version-compatibility)

LaravelPackage5.6.x1.0.xAnd add the service provider in `config/app.php`:

```
DesignMyNight\Laravel\Logging\MailableLogServiceProvider::class,
```

For usage with [Lumen](http://lumen.laravel.com), add the service provider in `bootstrap/app.php`.

```
$app->register(DesignMyNight\Laravel\Logging\MailableLogServiceProvider::class);
```

Configuration
-------------

[](#configuration)

Most configuration options can be automatically populated by environment variables or in config/mailablelog.php, to generate it run php artisan vendor:publish.

To ensure all unhandled exceptions are mailed, set up a mail logging channel and add it to your logging stack in config/logging.php:

```
'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' => 'errors@designmynight.com',
                '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' => 'errors@designmynight.com',
            'name' => 'Errors'
        ],
        // Optionally overwrite the mailable template
        // 'mailable' => NewLogMailable::class
    ],
],
```

You can specify multiple channels and change the recipients and customise the email template per channel.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~627 days

Total

4

Last Release

929d ago

Major Versions

v1.0.2 → v2.0.02023-11-01

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6871504?v=4)[Dan](/maintainers/danjohnson95)[@danjohnson95](https://github.com/danjohnson95)

![](https://avatars.githubusercontent.com/u/12199424?v=4)[Steve Porter](/maintainers/StevePorter92)[@StevePorter92](https://github.com/StevePorter92)

![](https://avatars.githubusercontent.com/u/465569?v=4)[Will Taylor-Jackson](/maintainers/willtj)[@willtj](https://github.com/willtj)

![](https://avatars.githubusercontent.com/u/9197954?v=4)[James](/maintainers/jmosul)[@jmosul](https://github.com/jmosul)

![](https://avatars.githubusercontent.com/u/1786811?v=4)[Ally](/maintainers/alasdairmackenzie)[@alasdairmackenzie](https://github.com/alasdairmackenzie)

---

Top Contributors

[![RobJenkinson](https://avatars.githubusercontent.com/u/15452139?v=4)](https://github.com/RobJenkinson "RobJenkinson (1 commits)")

---

Tags

emailemail-loglaravellaravel-loggingmonologotherlaravelmonologlaravel-log-mailerdesignmynightlaravel-logging

### Embed Badge

![Health badge](/badges/designmynight-laravel-log-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/designmynight-laravel-log-mailer/health.svg)](https://phpackages.com/packages/designmynight-laravel-log-mailer)
```

###  Alternatives

[tylercd100/lern

LERN (Laravel Exception Recorder and Notifier) is a Laravel 5 package that will record exceptions into a database and will notify you via Email, Pushover or Slack.

438153.4k3](/packages/tylercd100-lern)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10619.4k](/packages/naoray-laravel-github-monolog)[yzen.dev/mono-processor

This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.

116.1k](/packages/yzendev-mono-processor)

PHPackages © 2026

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