mblsolutions/paypoint-sendgrid-notification

PayPoint Sendgrid Notification package

v1.0.0 2025-08-28 08:05 UTC

This package is auto-updated.

Last update: 2025-08-28 09:42:36 UTC


README

PayPoint sendgrid notification package

Installation

The recommended method to install LaravelRepository is with composer

php composer require mblsolutions/paypoint-sendgrid-notification

Laravel without auto-discovery

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

\MBLSolutions\SendgridNotification\SendgridNotificationServiceProvider::class,

Package configuration

Copy the package configuration to your local config directory.
php artisan vendor:publish --tag=sendgrid-notification-config

Database Driver

If you would like to use the Database driver to store your notification logs, you will first need to create and run the database driver migration.

php artisan paypoint-sendgrid-notification:database:table

This will create a new migration in database/migrations, after creating this migration run the database migrations to create the new table.

php artisan migrate

Usage

The configuration and setup can be adjusted in the notification config file located in config/notification.php. We recommend reading through the config file before enabling notification to ensure you have the optimum setup.

Enable Notification Service

In environment setting, you need to change MAIL_MAILER from smtp to sendgrid to enable the service. The credentials is neede to add in your .env file.

MAIL_MAILER=sendgrid
SENDGRID_DSN=sendgrid+api://[SECRET_KEY]@default

In mail setting, you need to add sendgrid in mailer.

'mailers' => [
    //... other mailer
    'sendgrid' => [
        'transport' => 'sendgrid',
        'dsn' => env('SENDGRID_DSN'),
    ],

License

Notification is free software distributed under the terms of the MIT license.