Refactoring the mailcoach codebase to domains original

by Freek Van der Herten – 1 minute read

I'm currently working on the next major version of Mailcoach, a package that allows you to send e-mail campaigns using your Laravel app.

The package is already quite big, and v4 will introduce a lot of "big" functionality like drip campaigns and the tracking of transactional mail.

In this stream I'll do a live refactor of the Mailcoach code base so the package becomes easier to maintain.

If you want to learn more patterns on how to structure code, check out our Laravel Beyond CRUD course.

Join 9,500+ smart developers

Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.

"Always fresh, useful tips and articles. Carefully selected community content. My favorite newsletter, which I look forward to every time."

Bert De Swaef — Developer at Vulpo & Youtuber at Code with Burt

No spam. Unsubscribe anytime. You can also follow me on X.

Found something interesting to share? Submit a link to the community section.