Skip to content

A package designed to work with Sendgrid Email Authentication and Tenancy for Laravel

License

Notifications You must be signed in to change notification settings

l4nos/tenancy-sendgrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tenancy Sendgrid Senders

Intro

This package is designed to add api routes into your application to allow you to add Email / Domain authentication for your tenants with sendgrid.

Setup

Install with:

composer require lanos/laravel-sendgrid-tenancy

Then run migrations

php artisan migrate

A table called email_authentication should be created.

After that add the concern into the Tenant model.

class Tenant extends BaseTenant implements TenantWithDatabase
{
    use SendsEmail;
    ...
}

This will add the required relationships and functions to the tenant() / Tenant:: interface.

Lastly, add the routes wherever suits your application by calling the static method:

SgTen::routes();

We do not automatically load the routes as we recognise that every tenancy application uses different routing and middleware options, and rather than making you configure your service provider we simply allow you to drop the routes where is most convenient, you can surround these routes with whatever prefix and middleware you desire.

License

Please refer to LICENSE.md for this project's license.

About

A package designed to work with Sendgrid Email Authentication and Tenancy for Laravel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages