SPATIE

Services
Our philosophy Packages Postcards Guidelines Documentation
Products Blog About
Login Work with us

This is content from a paid course.

Buy course
  • Introduction
  • 1. Using Mailcoach

  • Using the 1-click-installer to set up Mailcoach in no time
  • 2. How Mailcoach was built

  • Sending a campaign
  • Tracking opens and clicks
  • Building small interface elements using Blade X
  • Building filters, part 1: determining the right queries
  • Building filters, part 2: rendering the html using Blade X
  • Rate limiting jobs
  • Adding high level feature tests
  • Using pending objects
  • Conditionally rendering form elements
  • 3. Using Mailcoach (legacy)

  • Mailcoach intro
  • Requiring confirmation
  • Using form subscriptions
  • Adding a subscription form
  • Preventing invalid subscriptions using a honeypot
  • Validating a subscription
  • Using segments
  • Configuring welcome mails
  • Using events to add extra logic
  • 4. Writing clear code

  • Refactor complex conditionals
  • Refactor if blocks to dedicated classes
  • Controlling the flow of time
  • Using suffixes
  • Creating dedicated exception classes
  • Snapshot testing
  • Using form requests

Conditionally rendering form elements

In the Mailcoach UI there are some form elements that are only displayed in certain conditions. Here's how that behaviour is implemented.

Using pending objects
Up next Mailcoach intro
  • Services
  • Open source
  • Products
  • Courses
AboutBlogNewsletterDocsGuidelines

Kruikstraat 22, Box 12
2018 Antwerp, Belgium
info@spatie.be
+32 3 292 56 79
  • GitHub
  • Instagram
  • LinkedIn
  • X
  • Bluesky
  • Mastodon
  • YouTube
  • Privacy
  • Disclaimer

+32 3 292 56 79

Click to call us

A good
match?

What we do best

  • All things Laravel
  • Custom frontend components
  • Building APIs
  • AI-powered features
  • Simplifying things
  • Clean solutions
  • Integrating services

Not our cup of tea

  • WordPress themes
  • Cutting corners
  • Free mockups to win a job
  • "Just execute the briefing"

In short: we'd like to be a substantial part of your project.

Get in touch via email