★ Creating beautiful invoices using Tailwind and Laravel PDF

24 · Freek Van der Herten · Jan. 16, 2024, 3:34 p.m.
Last week, we released a new package called Laravel PDF that allows you to transform Blade views into PDFs. Under the hood, Chromium is used to perform the transformation. Because Chromium is an up-to-date browser, you can use any modern CSS you like. Some people have asked if they can use Tailwind to style their documents. And I’m happy to report you can. Let’s take a look at a minimal example to showcase this. In your project, you need to save a Blade view with content like this. In this view...