Skip to content

Instantly share code, notes, and snippets.

View jasonlemay's full-sized avatar

Jason Lemay jasonlemay

View GitHub Profile
@jasonlemay
jasonlemay / 0) ABC for Sendy with Laravel
Last active July 28, 2017 04:39
Setting up Sendy with Laravel
Setting up Sendy with Laravel
(there might be bugs, I striped out some parts of my code because what I have is more complicated then that, so, sorry if it's broken!)
--
I would recommand creating a database for Sendy only.
Add Sendy's database into your database.php (1)
Create the Campaign model (2), and specify that you want to use Sendy's database (Campaigns are the only thing we really need to create, other things like creating lists can be done through Sendy interface, and there is a PHP library to add subscribers)
Now, it's time to install Sendy, usually somewhere like yourapp.com/sendy or yourapp.com/newsletter