PHPackages                             gearbox-solutions/mail-log - 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. gearbox-solutions/mail-log

ActiveLibrary

gearbox-solutions/mail-log
==========================

Mail Logger

0.0.5(10mo ago)286.4k↓37.5%3[3 PRs](https://github.com/gearbox-solutions/mail-log/pulls)MITPHPPHP ^8.2CI passing

Since Feb 22Pushed 4mo ago4 watchersCompare

[ Source](https://github.com/gearbox-solutions/mail-log)[ Packagist](https://packagist.org/packages/gearbox-solutions/mail-log)[ Docs](https://github.com/gearbox-solutions/mail-log)[ RSS](/packages/gearbox-solutions-mail-log/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (15)Versions (11)Used By (0)

Mail Log for Laravel
====================

[](#mail-log-for-laravel)

[![Total Downloads](https://camo.githubusercontent.com/a7d5ab652d70a0071eccf9cfdd978f567c4e1a9905a709ddb95c66319ec3af0f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67656172626f782d736f6c7574696f6e732f6d61696c2d6c6f67)](https://packagist.org/packages/gearbox-solutions/mail-log)[![Latest Stable Version](https://camo.githubusercontent.com/10ade83a83afbfef235e5a9952e767d65af2e65804ac6542ceabcda0816c14a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67656172626f782d736f6c7574696f6e732f6d61696c2d6c6f67)](https://packagist.org/packages/gearbox-solutions/mail-log)[![License](https://camo.githubusercontent.com/b68489bfc91dc4d1012758a65ef6c2131b68d34c685392f19b9628d664c15dc8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f67656172626f782d736f6c7574696f6e732f6d61696c2d6c6f67)](https://github.com/gearbox-solutions/mail-log/blob/2.x/LICENSE)

This is a package built for [Laravel](https://laravel.com/) to log all emails sent from your application.

Mail Log provides a user interface to view all emails which have been sent. The default location is `https://yourapp.com/mail-log`, but can be changed.

The Mail Log UI and routes are separate from the rest of your app. The assets are all precompiled and frontend-agnostic! It should work fine no matter if you're using Blade, Inertia, React, Vue, or any other frontend.

[![An example list view of sent email in the Mail Log package](./docs/images/mail-log-index.webp)](./docs/images/mail-log-index.webp?raw=true)

[![An example list view of sent email in the Mail Log package](./docs/images/mail-log-detail.webp)](./docs/images/mail-log-detail.webp?raw=true)

Support
-------

[](#support)

This package is built and maintained by [Gearbox Solutions](https://gearboxgo.com/). We build fantastic web apps with technologies like Laravel, Vue, React, and Node. If you would like assistance building your own web app, either using this package or other projects, please [contact us](https://gearboxgo.com/) for a free introductory consultation to discuss your project.

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

[](#installation)

Install using composer:

```
composer require gearbox-solutions/mail-log
```

Publish and run the migrations to add the mail-logs table:

```
php artisan vendor:publish --tag="mail-log-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="mail-log-config"
```

Usage
-----

[](#usage)

### Web

[](#web)

Visit the `/mail-log` route to view the emails.

### Commands

[](#commands)

Delete all mail logs

```
php artisan mail-log:delete-all
```

Delete mail logs older than a certain number of days

```
php artisan mail-log:delete-old {days}
```

Skip confirmation prompt by adding the `--yes` flag

```
php artisan mail-log:delete-old {days} --yes
```

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

[](#configuration)

### Authentication and middleware

[](#authentication-and-middleware)

All messages are visible at the `/mail-logs` url. By default, this is protected by the `Illuminate\Session\Middleware\AuthenticateSession` middlware. This means that any logged-in user can see all email messages sent. You can change this by changing the `middleware` array in the published `config/mail-log.php` file.

### Database

[](#database)

By default, this package stores all emails sent by your server in the `mail-logs` table of the default database. You can change the database connection used by adjusting the `database` attribute in the published `config/mail-log.php`

Development
-----------

[](#development)

This package is built using the following stack:

- [Inertia.js](https://inertiajs.com/)
- [Vue](https://vuejs.org/)
- [PrimeVue](https://primevue.org/)
- [TailwindCSS](https://tailwindcss.com/)
- [Orchestra Testbench](https://packages.tools/testbench)

Developing this package is done using two local servers. The first is the Testbench Laravel server which is used to serve the app. The second is Vite, which builds the front-end assets.

Run the development Laravel server using

```
composer run serve
```

Run the Vite server using

```
npm run dev
```

Visit  to view the test emails.

Building for distribution
-------------------------

[](#building-for-distribution)

Front-end assets are compiled using Vite. The final output is in the `dist` directory. Assets built to this directory are served by laravel through a configuration in the `web.php` routes file.

To compile the assets for distribution, run:

```
npm run build
```

Commit these files to version control after running the build command.

Laravel controllers and other php files are delivered as is, and do not need any special processing.

Testing
-------

[](#testing)

Test are handled by Orchestra Testbench. You can run tests with the command:

```
composer test
```

License
-------

[](#license)

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

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance67

Regular maintenance activity

Popularity35

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity46

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

Recently: every ~32 days

Total

6

Last Release

319d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/292ec8da211e962a93e5c89317774dc1c2c485f982e201e2be9dd445434db53b?d=identicon)[Smef](/maintainers/Smef)

---

Top Contributors

[![Smef](https://avatars.githubusercontent.com/u/4460358?v=4)](https://github.com/Smef "Smef (21 commits)")[![likeadeckofcards](https://avatars.githubusercontent.com/u/6399755?v=4)](https://github.com/likeadeckofcards "likeadeckofcards (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

laravelGearbox Solutionsmail-log

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/gearbox-solutions-mail-log/health.svg)

```
[![Health](https://phpackages.com/badges/gearbox-solutions-mail-log/health.svg)](https://phpackages.com/packages/gearbox-solutions-mail-log)
```

###  Alternatives

[inovector/mixpost

Self-hosted social media management software.

3.0k5.2k2](/packages/inovector-mixpost)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[redberry/mailbox-for-laravel

This is my package mailbox-for-laravel

169.9k](/packages/redberry-mailbox-for-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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