Laravel 12.27, weekly updates, and weekly tip
Laravel 12.27
Lots of patch releases last week and one this week brings us to Laravel 12.27.1. Here are the highlights:
- Add nested array notation to
loadMissing()
in #56711 - Add more enum support to
Collection
in #56786, #56830, #56857 - Add
make:config
in #56819 - Add
prependCount
parameter toStr::plural()
in #56802 - Add support for SQS Fair Queue in #56763
- Allow
toPrettyJson()
to accept options in #56876
You may review the full branch diff on GitHub for a complete list of changes.
This version bump and update is automated for subscribers to a Shifty Plan. If you don't have one of those, be sure to bump your constraint and run composer update
to get the latest features.
Weekly Journal
Last week I did a lot of housekeeping. First, I bumped the web server to PHP 8.4. All of the Shift workers were 8.4. But the web server was still PHP 8.2. It tends to lag as I never want to risk bringing the site (business) down. A common tale.
Once on PHP 8.4, I finally upgraded to Laravel 12. Some packages kept me from initially upgrading. Another common tale. Then I tied the upgrade to the web server upgrade. So it too lagged more than usual.
When building the Dusk Converter, I noticed that I never released the PHPUnit 11 Shift and PHPUnit 12 Shift. If you fully upgraded to PHPUnit 10, you probably could have just bumped your Composer constraints. Which is why I never prioritized them. But, sticking with the common tales, most don't fully upgrade. So, for completeness, they are no part of the Shift catalog.
I also converted the order flow to a Livewire component. The order flow has a lot of paths - coupons, subscriptions, upselling, bundling. These all have been duct taped on over the years. While everything worked, it wasn't the best experience. By making it more reactive to input, I can adjust the UI accordingly. This provides a clearer experience for your current order flow.
Weekly Tip
I generically mentioned working on a course in previous newsletters. It was another Laracasts Creator Series. This time it's BaseCode Reloaded, and it launches today.
As readers, I assume may of you are familiar with BaseCode. While the practices outlined in this series are the same, I tried to modernize the examples and make them more Laravel specific. Since it's Laracasts.
Even if you adopted all the BaseCode practices, I think the code review videos and video on Symmetry are still worth a watch. If you aren't familiar with the BaseCode practices, then it's all worth a watch. These practices have made me the programmer I am today.