aw-studio/laravel-maillog

Automatically log information about all outgoing mail in your Laravel application.

v0.4 2024-04-30 18:23 UTC

This package is auto-updated.

Last update: 2024-04-30 18:25:15 UTC


README

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

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',
    ],