Some integration tips for Laravel app #14
csoutham
started this conversation in
Show and tell
Replies: 1 comment
-
Hi! Thank you for the suggestion, the idea is to create SDKs for various languages and framework in the future, along with a Laravel integration. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, thought I'd share some code I've used to integrate MailCarrier into a recent web app.
It's my personal preference, and happy for it to be improved upon but works for me!
Add two new .env variables:
MAILCARRIER_ENDPOINT=https://domain.com/api/send
MAILCARRIER_TOKEN="yourtoken"
Add a new config array to config/mail.php > mailers section
Create a new Services class under app/Services
You can now call this code from anywhere within your application, for instance a command example:
Beta Was this translation helpful? Give feedback.
All reactions