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

laravelcloud logo
Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Visit Laravel Cloud

The latest

View all →
PayZephyr: One Payment API for Stripe, Paystack, and PayPal image

PayZephyr: One Payment API for Stripe, Paystack, and PayPal

Read article
Bifrost Turns One With AI Builds and New Workflows image

Bifrost Turns One With AI Builds and New Workflows

Read article
Preview Blade Templates in macOS Finder with Quick Blade image

Preview Blade Templates in macOS Finder with Quick Blade

Read article
Artisan Debugging Commands in Laravel Telescope 5.24.0 image

Artisan Debugging Commands in Laravel Telescope 5.24.0

Read article
Queue totalSize() and JobInterrupted Event in Laravel 13.31 image

Queue totalSize() and JobInterrupted Event in Laravel 13.31

Read article
Find Unexpected Test Inputs with Fuzz for Pest image

Find Unexpected Test Inputs with Fuzz for Pest

Read article