vikramsra / laravel-email-database-log
A simple database logger for all outgoing emails sent by Laravel website.
Package info
github.com/vikramsra/laravel-email-database-log
pkg:composer/vikramsra/laravel-email-database-log
Requires
- php: ^8.2
- illuminate/support: ^12.0
- nesbot/carbon: ^3.8.4
Requires (Dev)
- orchestra/testbench: ^10.0
- phpunit/phpunit: ^11.5.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-07 04:12:00 UTC
README
A simple database logger for all outgoing emails sent by Laravel website. Thanks to Shvets Group for this wonderful extension
Requirements
- PHP 8.2+
- Laravel 12
Installation
Step 1: Composer
Laravel Email Database Log can be installed via composer by running this line in terminal:
composer require vikramsra/laravel-email-database-log
Step 2: Configuration
The service provider is registered automatically via package discovery. If you have disabled package discovery, add the following to the providers list in bootstrap/providers.php:
return [ // ... vikramsra\LaravelEmailDatabaseLog\LaravelEmailDatabaseLogServiceProvider::class, ];
Step 3: Migration
Publish migration files:
php artisan vendor:publish --tag=laravel-email-database-log-migration
Now, run this in terminal:
php artisan migrate
Usage
After installation, any email sent by your website will be logged to email_log table in the site's database.