New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

aw-studio/laravel-maillog

Automatically log information about all outgoing mail in your Laravel application.
2,099
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...

651,963,193 9,701
laravel/framework

The Laravel Framework.

610,364,751 34,988
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

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

435,097,283 607
nunomaduro/collision

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

407,699,310 4,663

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