cloudest-co / laravel-nova-email-log
A Laravel Nova tool.
Package info
github.com/cloudest-co/laravel-nova-email-log
pkg:composer/cloudest-co/laravel-nova-email-log
v0.0.5
2019-09-05 10:27 UTC
Requires
- php: >=7.2
- cloudest-co/laravel-eloquent-email-log: ^0.0.4
- laravel/nova: ^2.1
This package is auto-updated.
Last update: 2026-06-11 12:06:12 UTC
README
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.
