Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Log Emails

Laravel Log Emails Laravel Package

codeat3/laravel-log-emails

Laravel package that logs outgoing emails instead of sending them, making it useful for local development and testing. Capture messages to inspect recipients, subjects, and content without configuring a real mail service or risking accidental delivery.

View on GitHub
Deep Wiki
Context7

laravel-email-db-log

Frequently asked questions about Laravel Log Emails
How do I install codeat3/laravel-log-emails in a Laravel project?
Install codeat3/laravel-log-emails with Composer, then publish its configuration and migrations and run the migrations. Based on the package overview, the workflow is Laravel-native: require the package, publish assets, migrate, and configure mail capture for local or testing environments. Verify the supported Laravel and PHP versions in the repository before installing, and test in a non-production branch first.
Does laravel-log-emails send emails or only store them in the database?
The package description says it logs outgoing emails instead of sending them, so its primary purpose is capture for local development and testing. The provided v1.0.0 release note only mentions dumping emails in the database, and it does not confirm production send semantics, retries, or provider integration. Confirm whether it acts as a listener or capture layer versus a database mail transport before relying on it in production.
Which Laravel and PHP versions does laravel-log-emails support?
The provided context does not list a confirmed Laravel, PHP, or database support matrix for codeat3/laravel-log-emails. Because v1.0.0 release notes are sparse, check the repository composer.json, README, and test suite for version constraints and database driver behavior. Run a quick install on your target Laravel and PHP versions before planning wider use.
Can I use laravel-log-emails for production email auditing?
It may be useful for production audit or debug capture, but the assessment rates technical risk as medium until behavior is proven. Promote it only after a security review, retention design, failure-mode testing, and compatibility confirmation. Keep it scoped to selected mailables or environments rather than replacing critical transactional delivery.
How do I log emails locally in Laravel without sending them?
Configure the package in your local or testing environment, publish and run its migrations, and use Laravel's Mail facade as usual so outgoing messages are captured. Validate with representative plain-text, HTML, attachment, and queued emails to confirm what is stored. Avoid enabling production delivery changes until you know whether the package captures or replaces sending.
Does laravel-log-emails store attachments, HTML content, and recipients?
The overview says you can inspect recipients, subjects, and content, but the provided context does not confirm attachment storage, HTML body handling, or attachment size limits. Review the migration schema and documentation before assuming full message fidelity. Test representative emails with attachments and multipart content in staging.
Does laravel-log-emails work with queued mailables and Laravel queues?
Queue compatibility is not confirmed by the v1.0.0 release note, so test queued mailables and queue workers explicitly. Determine whether persistence happens synchronously during mail handling or in a queued job, and what happens when the database is unavailable. Scope the package to non-critical capture until reliability is proven.
What are the security and privacy concerns of storing emails in the database?
Storing real email bodies in a database can expose PII, message content, and recipient data to unauthorized access, backups, and logs. The assessment flags security and privacy review as mandatory before storing customer email content. Plan for encryption or redaction where needed, access controls, retention limits, and purge procedures.
How do I prune or manage the email log database table from laravel-log-emails?
The package may create a growing email table, and the provided notes do not confirm built-in pruning or archival. Add a retention policy, scheduled pruning, or archival process before sustained production use. Monitor table size and verify that migrations are reversible and config-safe in your environment.
What happens if the database write fails when laravel-log-emails captures an email?
Failure behavior when the database write fails is not documented in the provided context, so test it in staging before production. If the package is used as a mail transport, a database outage could affect mail handling; as a capture or listener, the blast radius should be smaller. Add monitoring and fallback behavior for non-critical audit use.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core