Laravel Tutorials

Inline CSS with Laravel and Mailgun

Published

Antoine Augusti has a new tutorial out for automatically inlining css with outgoing emails.

This came at a great time for me because in last weeks newsletterI forgot to inline the styles. :) I actually looked at the package Antoine is using tijsverkoyen/CssToInlineStyles but after my typical 10 seconds of skimming the page I seen this:

Documentation: The class is well documented inline. If you use a decent IDE you’ll see that each method is documented with PHPDoc.

I said to myself, bah if you can’t even show a simple example then I’m not wasting my time and moved on. I’ve written about Open Source Marketing before on my personal site, because I think spending the extra 5 minutes of showcasing the benefits matters. Thank you, Antoine for showing just how easy this package is.

Eric L. Barnes photo

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Sponsored

masteringlaravel logo
Laravel Code Review

Get expert guidance in a few days with a Laravel code review

Visit Laravel Code Review

The latest

View all →
Agent Run Observability in Laravel AI SDK 0.11 image

Agent Run Observability in Laravel AI SDK 0.11

Read article
Debounced Queued Event Listeners in Laravel image

Debounced Queued Event Listeners in Laravel

Read article
Statamic Mailables Viewer Previews Laravel Emails in the Control Panel image

Statamic Mailables Viewer Previews Laravel Emails in the Control Panel

Read article
Laravel Tackle: Run an AI Coding Agent in Your Laravel App image

Laravel Tackle: Run an AI Coding Agent in Your Laravel App

Read article
Queue::forward(): Reroute Laravel Queues in One Place image

Queue::forward(): Reroute Laravel Queues in One Place

Read article
Laravel Read-Through Filesystem: Lazy Storage Migration image

Laravel Read-Through Filesystem: Lazy Storage Migration

Read article