chocoholics / laravel-elastic-email by oburatongoi

A Laravel wrapper for Elastic Email
7,214
8
4
Package Data
Maintainer Username: oburatongoi
Maintainer Contact: obura@tongoi.com
Package Create Date: 2017-04-14
Package Last Update: 2020-09-16
Language: PHP
License: MIT
Last Refreshed: 2024-11-22 03:12:55
Package Statistics
Total Downloads: 7,214
Monthly Downloads: 25
Daily Downloads: 0
Total Stars: 8
Total Watchers: 4
Total Forks: 15
Total Open Issues: 5

Laravel Elastic Email

A Laravel wrapper for Elastic Email

Installation

Add Laravel Elastic Email as a dependency using the composer CLI:

composer require chocoholics/laravel-elastic-email

Next, add the following to your config/services.php and add the correct values to your .env file

'elastic_email' => [
	'key' => env('ELASTIC_KEY'),
	'account' => env('ELASTIC_ACCOUNT')
]

Next, in config/app.php, comment out Laravel's default MailServiceProvider. If using < Laravel 5.5, add the MailServiceProvider to the providers array

'providers' => [
    /*
     * Laravel Framework Service Providers...
     */
    ...
//    Illuminate\Mail\MailServiceProvider::class,
    Chocoholics\LaravelElasticEmail\MailServiceProvider::class,
    ...
],

Finally switch your default mail provider to elastic email in your .env file by setting MAIL_DRIVER=elastic_email

Usage

This package works exactly like Laravel's native mailers. Refer to Laravel's Mail documentation.