laravel-nova-email-log maintained by cloudest-co
Adds an Email Log resource so that you can see all outgoing emails from your app.
Logs all outbound emails to the database, and allows you to view them in Laravel Nova.

Installation
You can install the package via composer:
composer require cloudest-co/laravel-nova-email-log
Add to your NovaServiceProvider
/**
* Get the tools that should be listed in the Nova sidebar.
*
* @return array
*/
public function tools()
{
return [
new \Cloudest\NovaEmailLog\NovaEmailLog,
];
}
Relationships
Add the trait to your user model so that you can reference the logs.
<?php
use Cloudest\LaravelEloquentEmailLog\HasEmailLogs;
class User extends Authenticatable
{
use HasEmailLogs;
...
}
Add the relation to your Nova User resource so that you can see a list of email logs per user.
/**
* Get the fields displayed by the resource.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function fields(Request $request)
{
return [
...
MorphMany::make('Email Logs', 'emailLogs', \Cloudest\NovaEmailLog\EmailLogResource::class),
];
}
Security
If you discover any security related issues, please email chris@cloudest.co.uk instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.