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(2y ago)11.0k↓91.7%MITPHPPHP ^8.0

Since Oct 19Pushed 2y 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 3d 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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

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

775d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[illuminate/view

The Illuminate View package.

13047.0M2.2k](/packages/illuminate-view)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[masterro/laravel-mail-viewer

Easily view in browser outgoing emails.

65108.9k](/packages/masterro-laravel-mail-viewer)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[illuminate/notifications

The Illuminate Notifications package.

513.1M1.1k](/packages/illuminate-notifications)

PHPackages © 2026

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