norman-huth/laravel-email-log is a Laravel package.
It currently has 1 GitHub stars and 1.055 downloads on Packagist (latest version 1.0.4).
Install it with composer require norman-huth/laravel-email-log.
Discover more Laravel packages by norman-huth
or browse all Laravel packages to compare alternatives.
Last updated
Save sent emails in the database.
If there is an authenticated user while sending a mail, it will be saved as authenticatable (polymorphic relation).
composer require norman-huth/laravel-email-log
php artisan vendor:publish --provider="NormanHuth\LaravelEmailLog\Providers\PackageServiceProvider" --tag="email-log-config"
php artisan vendor:publish --provider="NormanHuth\LaravelEmailLog\Providers\PackageServiceProvider" --tag="email-log-migrations"
It’s a Laravel Eloquent Model.
use NormanHuth\LaravelEmailLog\Models\EmailLog::class;
return EmailLog::all();
return EmailLog::find(1);
return EmailLog::find(1)->authenticatable;
For a Laravel Nova integration read NOVA.md
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
}
Nullable morph.
/**
* Get the parent authenticatable model.
*/
public function authenticatable(): MorphTo
{
return $this->morphTo();
}
The softDeletes column is present in the migration, but the SoftDeletes Trait is not using by the Model.
Get paid by clients abroad
Wise gives you local bank details in several currencies and converts at the mid-market rate. Useful when your invoices are not in your own currency.
Try WiseNew Laravel packages worth a look, once a month. No spam, one-click unsubscribe.