Everything on Blade.
5 articles tagged Blade, sorted newest first.
Manage Laravel AI SDK Prompts as Versioned Blade Templates
Heredoc prompts buried in service classes cannot be diffed, reviewed or rolled back. Here is how I move them into versioned Blade templates that CI can catch.
Tailwind v4 @reference: Fix @apply in Blade & Scoped CSS
Tailwind v4 resolves @apply against the theme in the current file, so a second CSS bundle throws 'unknown utility class'. Here's how @reference fixes it without duplicating output.
Safelist Dynamic Blade Classes in Tailwind v4 with @source inline()
A Blade class like bg-{{ $color }}-500 works locally then disappears in production. Here's the Tailwind v4 fix with @source inline().
Livewire 4 wire:intersect: Infinite Scroll Pagination Without a JS Library
wire:intersect wraps IntersectionObserver so a scroll into view triggers a Livewire action. Here is the cursor-pagination pattern that loads each page exactly once.
Livewire 4 @placeholder: Skeleton Loaders That Match Your Island Layout
Drop a @placeholder block inside a lazy island and your dashboard widgets get a skeleton that matches their layout: no more layout shifts when slow queries finally arrive.