2017 © Pedro Peláez
 

library laravel-email-logger

Keep track in your database of all emails sent from within your application.

image

logikool/laravel-email-logger

Keep track in your database of all emails sent from within your application.

  • Saturday, March 3, 2018
  • by logikool
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Email Logger

This package provides a simple logging mechanism for all emails that are sent in your application. It uses Laravel's built in events which the logger listens to and creates a database entry from a Swift_Message object., (*1)

Installation

  1. Install via composer
composer require logikool/laravel-email-logger
  1. If you are not using package auto-discovery, add the service provider to your app.php configuration file.
Logikool\LaravelEmailLogger\LaravelEmailLoggerServiceProvider::class,
  1. Publish configuration and migration files
php artisan vendor:publish --provider="Logikool\LaravelEmailLogger\LaravelEmailLoggerServiceProvider"
  1. Run the migration
php artisan migrate

Configuration

Laravel Email Logger has it's own Eloquent model and Event Listeners, but if you need to, you can change those in your email-logger.php., (*2)

return [

  'model' => \Logikool\LaravelEmailLogger\Models\EmailLog::class,

  'listeners' => [
    'MessageSending' => \Logikool\LaravelEmailLogger\Listeners\MessageSending::class,
    'MessageSent' => \Logikool\LaravelEmailLogger\Listeners\MessageSent::class,
  ]

];

MessageSending and MessageSent are Laravel's built-in events and you can use your own listeners by providing a fully qualified class name., (*3)

EmailLog is a model which you can replace or extend if you need to., (*4)

The Versions

03/03 2018

dev-master

9999999-dev

Keep track in your database of all emails sent from within your application.

  Sources   Download

MIT

The Requires

 

by Avatar logikool

03/03 2018

1.0

1.0.0.0

Keep track in your database of all emails sent from within your application.

  Sources   Download

MIT

The Requires

 

by Avatar logikool