aw-studio/laravel-maillog

Automatically log information about all outgoing mail in your Laravel application.
2,086
Install
composer require aw-studio/laravel-maillog
Latest Version:v0.4.1
Laravel:8 – 11
License:MIT
Last Updated:Jul 8, 2025
Links: GitHub  ·  Packagist
Maintainer: jannescb

Laravel Maillog

Automatically log information about all outgoing mail in your Laravel application

Setup

You can install the package via composer:

composer require aw-studio/laravel-maillog

Your application will now log outgoing email information to a maillog.log file in the storage/logs folder.

Configuration

Log to Database

Additionally, if you want to log your outgoing mails to your database, you may do so with the following steps:

Publishing the package configuration and database migrations

php artisan vendor:publish --provider="AwStudio\Maillog\MaillogServiceProvider"

Run the migrations

php artisan migrate

Update the channels config in config/maillog.php:

    'channels' => [
        // 'log',
        'database',
    ],

Sending Event

By default, this package is configured so that it only logs when mails have been sent. You can change the configuration so that sending is also logged. This generates very similar data records, but can be useful to be able to trace whether problems have occurred on the way and the dispatch has failed unexpectedly.

'logs' => [
    'sent',
    'sending',
],

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

399,241,428 4,660

Version History

Version Released Laravel License
v0.4.1 ^8.0|^9.0|^10.0|^11.0 MIT
v0.4 ^8.0|^9.0|^10.0|^11.0 MIT