mabon / laravel-sendgrid-driver by jguthery

This liblary can add sendgrid driver into the laravel's mail configure.
9
0
0
Package Data
Maintainer Username: jguthery
Maintainer Contact: ian@io.co.za (Ian van der Merwe)
Package Create Date: 2016-05-27
Package Last Update: 2016-05-27
Language: PHP
License: MIT
Last Refreshed: 2024-12-22 03:09:10
Package Statistics
Total Downloads: 9
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 0
Total Forks: 0
Total Open Issues: 0

laravel-sendgrid-driver

====

A Mail Driver with support for Sendgrid Web API, using the original Laravel API. This library extends the original Laravel classes, so it uses exactly the same methods.

To use this package required your Sendgrid Api Key. Please make it Here.

Install (Laravel5.2~)

Add the package to your composer.json and run composer update.

"require": {
    "io-digital/laravel-sendgrid-driver": "^1.0"
},

or installed with composer

$ composer require io-digital/laravel-sendgrid-driver

Remove the default service provider and add the sendgrid service provider in app/config/app.php:

'providers' => [
//  Illuminate\Mail\MailServiceProvider::class,

    IoDigital\SendGridDriver\MailServiceProvider::class,
];

#Configure

.env

MAIL_DRIVER=sendgrid
SENDGRID_API_KEY='YOUR_SENDGRID_API_KEY'

config/service.php

    'sendgrid' => [
        'api_key' => env('SENDGRID_API_KEY')
    ]