PHPackages                             norman-huth/laravel-email-log - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. norman-huth/laravel-email-log

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

norman-huth/laravel-email-log
=============================

1.0.4(1y ago)1956↓50%MITPHPPHP ^8.0

Since Oct 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Muetze42/laravel-email-log)[ Packagist](https://packagist.org/packages/norman-huth/laravel-email-log)[ Fund](https://huth.it/coffee)[ GitHub Sponsors](https://github.com/Muetze42)[ RSS](/packages/norman-huth-laravel-email-log/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (5)Used By (0)

Laravel Email Log
=================

[](#laravel-email-log)

Save sent emails in the database.
If there is an authenticated user while sending a mail, it will be saved as `authenticatable` (polymorphic relation).

Install
-------

[](#install)

```
composer require norman-huth/laravel-email-log
```

### Optional: Publish

[](#optional-publish)

#### Publish [config file](config/email-log.php)

[](#publish-config-file)

```
php artisan vendor:publish --provider="NormanHuth\LaravelEmailLog\Providers\PackageServiceProvider" --tag="email-log-config"
```

#### Publish [Migration](database/migrations/2023_10_18_000000_create_email_logs_table.php)

[](#publish-migration)

```
php artisan vendor:publish --provider="NormanHuth\LaravelEmailLog\Providers\PackageServiceProvider" --tag="email-log-migrations"
```

Usage
-----

[](#usage)

It’s a [Laravel Eloquent Model](https://laravel.com/docs/10.x/eloquent).

```
use NormanHuth\LaravelEmailLog\Models\EmailLog::class;

return EmailLog::all();

return EmailLog::find(1);

return EmailLog::find(1)->authenticatable;
```

Laravel Nova
------------

[](#laravel-nova)

For a [Laravel Nova](https://nova.laravel.com/) integration read [NOVA.md](NOVA.md)

Model
-----

[](#model)

```
ErrorLog = {
    'id': Number,
    'subject': String,
    'body': String,
    'from': Array,
    'to': Array,
    'bbc': Array,
    'cc': Array,
    'reply_to': Array,
    'headers': Array,
    'attachments': Array,
    'is_html': Boolean,
    'priority': Number,
    'authenticatable_type': String|Null,
    'authenticatable_id': Number|Null,
    'created_at': String|Null,
    'updated_at': String|Null,
    'deleted_at': String|Null
}
```

### Model Relationship

[](#model-relationship)

Nullable morph.

```
/**
* Get the parent authenticatable model.
*/
public function authenticatable(): MorphTo
{
    return $this->morphTo();
}
```

### SoftDeletes

[](#softdeletes)

The [softDeletes](https://laravel.com/docs/10.x/migrations#column-method-softDeletes) column is present in the migration, but the [SoftDeletes Trait](https://laravel.com/docs/10.x/eloquent#soft-deleting) is not using by the Model.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~107 days

Total

3

Last Release

721d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2579233?v=4)[Muetze](/maintainers/Muetze)[@muetze](https://github.com/muetze)

---

Top Contributors

[![Muetze42](https://avatars.githubusercontent.com/u/26193232?v=4)](https://github.com/Muetze42 "Muetze42 (10 commits)")[![maria42-bot](https://avatars.githubusercontent.com/u/146655225?v=4)](https://github.com/maria42-bot "maria42-bot (1 commits)")

---

Tags

email-loglaravellogging

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/norman-huth-laravel-email-log/health.svg)

```
[![Health](https://phpackages.com/badges/norman-huth-laravel-email-log/health.svg)](https://phpackages.com/packages/norman-huth-laravel-email-log)
```

###  Alternatives

[masterro/laravel-mail-viewer

Easily view in browser outgoing emails.

6392.1k](/packages/masterro-laravel-mail-viewer)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[label84/laravel-auth-log

Log user authentication actions in Laravel.

3654.0k](/packages/label84-laravel-auth-log)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
