cloudest-co / laravel-nova-email-log
A Laravel Nova tool.
Installs: 4 987
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 16
Requires
- php: >=7.2
- cloudest-co/laravel-eloquent-email-log: ^0.0.4
- laravel/nova: ^2.1
- dev-master
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/qs-6.5.3
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.7
- dev-dependabot/npm_and_yarn/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/node-sass-4.14.1
This package is auto-updated.
Last update: 2025-01-11 08:56:51 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.