Laravel 12.21, weekly updates, and weekly tip
Laravel 12.21
Nice release before Laracon US bringing us to Laravel 12.21. Also a nice little palindrome. Here are the highlights.
- Allow globally disabling factory relationships with
Factory::dontExpandRelationshipsByDefault()
in #56154 - Add
whereValueBetween
two columns in #56119 - Allow for strict boolean validation in #56313
- Allow for strict numeric validation in #56328
- Improve
seed
command output in #56310 - Add prompt expectations to
PendingCommand
in #56260 - Add
#[Singleton]
and#[Scoped]
attributes in #56334 - Add
toStringable
toUri
in #56359 - Add
isEmpty
' andisNotEmpty
toFluent
in #56370 - Add
dontReportUsing
to filter exceptions in #56361
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
The second half of the year is slower for me as far as Shift. So it's a good time to implement bigger features or code refactors. Migrating to Stripe's Billing Portal was the immediate one. Now I want to refactor areas to use Livewire, revisit Can I upgrade Laravel, and make performance optimizations.
I also need to upgrade laravelshift.com to Laravel 12. I know what you're thinking. But it's kind of the cobbler's kids situation. After release, I'm so focused on supporting Shift, I don't have time to upgrade. I also don't want to risk breaking something during the busy season. In addition, as with any larger project, there have been a few dependencies that were not yet compatible with Laravel 12. Anyway, everything is ready now.
Mostly taking this week off in preparation for Laracon US next week. To that point, next week will be one of the rare times I don't do an update.
Weekly Tip
So apparently my high school computer teach retired. As such, there are now a 7 more printed copies of BaseCode available. I figured I'd offer them here first. So if you're interested in one, let me know.
I'll also bring a few Shift shirts to Laracon US. If you're attending and would like one, I'm selling them at cost. Just let me know. If you're not attending and want one, you may buy them from the Shift Shop.