Laravel 12.49, weekly updates, and weekly tip
Laravel 12.49
Taylor is heading to Laracon India this week, so we had a timezone, travel delay on Laravel 12.49. Here are the highlights:
- Support "where subquery between columns" in #58441
- Use searchable prompt for db:table command in #58442
- More enum support in #58444 and #58459
- Add
preserveKeys()toAnonymousResourceCollectionin #58443 - Fix memory leak in
Arr::dot()in #58458 - Add
hasSole()toCollection#58463 - Open
assertPushedTimes()inQueueFake#58511
You may review the full branch diff on GitHub for a complete list of changes.
Weekly Journal
Well, the girls were sick last weekend, which meant it was only a mater of time until I got sick. It happened Wednesday. Yesterday was the first day I felt "better".
I mostly just managed support emails. But if I had enough focus (and with Junie's help), I continued building Livewire Shifts. Yesterday, I launched the MFC Converter.
This will convert class-based Livewire components to the new multi-file components in Livewire 4. From MFC, you may use Livewire's livewire:convert command to convert to single file components (SFC).
With the rest of the week, I plan to backfill the Livewire 3.x Shift. That should be enough Livewire Shifts for now. I don't see a reason for a Livewire 2.x Shift. Plus, I need to switch gears to the February's Monthly Shift for subscribers, then the Laravel 13.x Shift.
Weekly Tip
I went on a bit of a tangent in today's livestream when refactoring some code for Laravel News. But, remember, you aren't gonna need it (YAGNI).
In my first Case Study for Fast Laravel, I'm refactoring the Laravel News home and article pages to make them cacheable.
On the surface this seemed unlikely as these pages used Livewire. But upon closer inspection, they didn't need Livewire. They had no reactivity. So, they were really just Blade components, with a Livewire shell. Demoting them was a straightforward refactor.