PHPackages                             laravelflare/mail-debug - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. laravelflare/mail-debug

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

laravelflare/mail-debug
=======================

1.1.0(9y ago)1314.1k↑16.7%1MITPHP

Since Apr 7Pushed 9y ago3 watchersCompare

[ Source](https://github.com/laravelflare/mail-debug)[ Packagist](https://packagist.org/packages/laravelflare/mail-debug)[ Docs](https://github.com/laravelflare/mail-debug)[ RSS](/packages/laravelflare-mail-debug/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (8)Used By (0)

Mail Debug
==========

[](#mail-debug)

This package is designed to help you easily preview and debug emails sent by your Laravel application in the browser. It provides a pop-up email preview on the subsequent page request after an email has been triggered by your application.

It is based off of [![themsaid's](https://github.com/themsaid/)](https://github.com/themsaid/) [![Laravel Mail Preview Driver](https://github.com/themsaid/laravel-mail-preview)](https://github.com/themsaid/laravel-mail-preview) which is extremely helpful for more persistent logging and previewing (including .eml files).

[![Example Animation](https://raw.githubusercontent.com/laravelflare/mail-debug/master/example.gif)](https://raw.githubusercontent.com/laravelflare/mail-debug/master/example.gif)

[![Latest Stable Version](https://camo.githubusercontent.com/345da89ddd475a0a08c3b1e5fef992ccb48a7f960ad4227d08d8d9fc2fbf916c/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c666c6172652f6d61696c2d64656275672f762f737461626c65)](https://packagist.org/packages/laravelflare/mail-debug) [![Total Downloads](https://camo.githubusercontent.com/948ddb3207e7dba5b9fe35aaa706769d3ddaf1fc48cfd9cf2edf0eef5222292a/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c666c6172652f6d61696c2d64656275672f646f776e6c6f616473)](https://packagist.org/packages/laravelflare/mail-debug) [![Latest Unstable Version](https://camo.githubusercontent.com/9a2874d9fac7eec6e2db625acc52e0e3951385deb21d826d6e72af0b7eb4ab97/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c666c6172652f6d61696c2d64656275672f762f756e737461626c65)](https://packagist.org/packages/laravelflare/mail-debug) [![License](https://camo.githubusercontent.com/634da8d606cb9c6a6079feeb371c32d2cb9c7f71db1fe05d3a89b2d087b15f34/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c666c6172652f6d61696c2d64656275672f6c6963656e7365)](LICENSE.md)

Quick Start Guide
-----------------

[](#quick-start-guide)

Install the package into your project using composer:

```
    composer require "laravelflare/mail-debug"

```

Add the Mail Debug Service Provider to your Applications Service Providers list:

```
    LaravelFlare\MailDebug\MailDebugServiceProvider::class,
```

Publish the configuration file using:

```
    php artisan vendor:publish

```

In your .env file, set your mail driver to `debug`:

```
    MAIL_DRIVER=debug

```

How It Works
------------

[](#how-it-works)

By registering your mail driver as `debug`, when an email is 'sent' Mail Transport stores the contents of the email to the application storage folder. It then sets the filename of the stored email into the Session.

On the next request (page load) the Mail Debug middleware will check the Session to determine if an email is available to be previewed. If it is, it will trigger the email to be displayed in a browser pop up window.

**Note:** You may need to allow pop-ups in your browser to see the preview emails.

Configuration Options
---------------------

[](#configuration-options)

### Path

[](#path)

This is the Mail Preview Storage Path to store mail preview files in. By default this is /storage/email-previews, but you can use whatever you like!

### Lifetime

[](#lifetime)

This is the amount of time to store the preview files for (in minutes). By default this is one minute but can be increased if you would like a certain level of persistence.

Improvements Required
---------------------

[](#improvements-required)

- Implement Tests
- Currently this only works for the last mail sent in a request. If your request cycle sends several emails, only the final email will be displayed on the subsequent page request pop-up.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~63 days

Recently: every ~94 days

Total

7

Last Release

3314d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3559236255a133e7623fe59230e4c77b277f563d5058cc9f8a5c9078b10364e2?d=identicon)[AdenFraser](/maintainers/AdenFraser)

---

Top Contributors

[![AdenFraser](https://avatars.githubusercontent.com/u/1902819?v=4)](https://github.com/AdenFraser "AdenFraser (2 commits)")[![EnricoSottile](https://avatars.githubusercontent.com/u/10349653?v=4)](https://github.com/EnricoSottile "EnricoSottile (2 commits)")

---

Tags

laravelflare

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravelflare-mail-debug/health.svg)

```
[![Health](https://phpackages.com/badges/laravelflare-mail-debug/health.svg)](https://phpackages.com/packages/laravelflare-mail-debug)
```

###  Alternatives

[facade/ignition

A beautiful error page for Laravel applications.

2.1k102.2M333](/packages/facade-ignition)[spatie/laravel-ignition

A beautiful error page for Laravel applications.

573146.7M471](/packages/spatie-laravel-ignition)[spatie/ignition

A beautiful error page for PHP applications.

511147.6M69](/packages/spatie-ignition)[spatie/laravel-error-solutions

Display solutions on the Laravel error page

9773.5k](/packages/spatie-laravel-error-solutions)[astrotomic/ignition-stackoverflow

A tab that fetches stackoverflow questions

7879.8k](/packages/astrotomic-ignition-stackoverflow)[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235321.4k](/packages/laracraft-tech-laravel-xhprof)

PHPackages © 2026

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