PHPackages                             justijndepover/laravel-inbox - 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. justijndepover/laravel-inbox

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

justijndepover/laravel-inbox
============================

Intercept outgoing emails in your Laravel application

0.5.0(5y ago)631[1 issues](https://github.com/justijndepover/laravel-inbox/issues)MITVue

Since Oct 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/justijndepover/laravel-inbox)[ Packagist](https://packagist.org/packages/justijndepover/laravel-inbox)[ RSS](/packages/justijndepover-laravel-inbox/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Laravel inbox
=============

[](#laravel-inbox)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8fb266cc8deeaef9772a302685bb211c20c7a084d2901ebb20472d8fc8f9614a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a757374696a6e6465706f7665722f6c61726176656c2d696e626f782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/justijndepover/laravel-inbox)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/949a339ff95e4a2c10fbed0d6118ff4cba26e238b84bafceb43af7dc3c798220/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a757374696a6e6465706f7665722f6c61726176656c2d696e626f782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/justijndepover/laravel-inbox)

Add an inbox screen to your application to monitor all outgoing emails.

[![Screenshot](https://raw.githubusercontent.com/justijndepover/laravel-inbox/master/docs/screenshot.png)](https://raw.githubusercontent.com/justijndepover/laravel-inbox/master/docs/screenshot.png)

Caution
-------

[](#caution)

This application is still in development and could implement breaking changes. Please use at your own risk.

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

[](#installation)

You can install the package with composer

```
composer require justijndepover/laravel-inbox
```

After the installation, you have to publish the assets and perform the migration.

```
php artisan inbox:install --migration
```

If needed, you can also publish the config file immediately

```
php artisan inbox:install --config
```

This is the config file

```
return [

    /*
     * This setting determines if the Laravel Inbox package should Listen
     * to Sending mail events.
     */
    'listener_enabled' => (config('app.env') != 'production'),

    /*
     * This setting determines if the Laravel Inbox package should open up
     * the endpoint to view the inbox application.
     */
    'application_enabled' => (config('app.env') != 'production'),

    /*
     * This is the URI path where Laravel Inbox will be accessible from.
     */
    'path' => 'inbox',

    /*
     * These middleware will get attached onto each Laravel Inbox route, giving you
     * the chance to add your own middleware to this list or change any of
     * the existing middleware. Or, you can simply stick with this list.
     */
    'middleware' => ['web'],

];
```

Usage
-----

[](#usage)

The application will expose an endpoint at `/inbox`.

By default, the package only works if your application environment is not set to production. You can change this behaviour by overwriting the `inbox.listener_enabled` and `inbox.application_enabled` setting.

Authorization
-------------

[](#authorization)

The `/inbox` endpoint is available to everyone. If you'd like to protect this route, you can do so by registering the following gate.

```
use Illuminate\Support\Facades\Gate;

Gate::define('viewInbox', function ($user) {
    // your logic here
    return $user->isAdmin();
});
```

A good place to do this is in your `AuthServiceProvider` that ships with Laravel by default.

Use cases
---------

[](#use-cases)

The main purpose for creating this package was to provide an alternative to [mailtrap](https://mailtrap.io). That's also why the package only works if the application is not in production mode.

If you want to use the package for the same reason, it's recommended to set your mail driver to `log` inside your env file, to prevent your application from actually sending emails.

```
MAIL_MAILER=log

```

Security
--------

[](#security)

If you find any security related issues, please open an issue or contact me directly at [justijndepover@gmail.com](justijndepover@gmail.com).

Contribution
------------

[](#contribution)

If you wish to make any changes or improvements to the package, feel free to make a pull request.

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

6

Last Release

2038d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9008623?v=4)[Justijn Depover](/maintainers/justijndepover)[@justijndepover](https://github.com/justijndepover)

---

Top Contributors

[![justijndepover](https://avatars.githubusercontent.com/u/9008623?v=4)](https://github.com/justijndepover "justijndepover (48 commits)")

---

Tags

hacktoberfestinboxlaravelmailphp

### Embed Badge

![Health badge](/badges/justijndepover-laravel-inbox/health.svg)

```
[![Health](https://phpackages.com/badges/justijndepover-laravel-inbox/health.svg)](https://phpackages.com/packages/justijndepover-laravel-inbox)
```

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)

PHPackages © 2026

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