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

acquaintsoft logo
Acquaint Softtech

Hire Laravel developers with AI expertise at $20/hr. Get started in 48 hours.

Visit Acquaint Softtech

The latest

View all →
Pause Polling in Background Tabs in Inertia.js v3.9 image

Pause Polling in Background Tabs in Inertia.js v3.9

Read article
Look What You Helped Me Build image

Look What You Helped Me Build

Read article
BashBox: A Sandboxed Bash Interpreter for AI Agents in PHP image

BashBox: A Sandboxed Bash Interpreter for AI Agents in PHP

Read article
Running Laravel's Scheduler on Multiple Servers image

Running Laravel's Scheduler on Multiple Servers

Read article
Laravel Fake Assertions Now Accept Property Arrays image

Laravel Fake Assertions Now Accept Property Arrays

Read article
Route::query() and Model defaults() in Laravel 13.35 image

Route::query() and Model defaults() in Laravel 13.35

Read article