Laravel 12.11, weekly updates, and weekly tip
Laravel 12.11
Lots of patch releases last week and lots of new features this week brings us to Laravel 12.11.0.
- Add Enum support for
assertJsonPath
in #55516 - Add payload creation and original delay info to job payload in #55529
- Add config option to ignore view cache timestamps in #55536
- Fire
NotificationFailed
when sending fails in #55507 - Option to disable
dispatchAfterResponse
behavior when testing in #55456 - Add support for
function
andconst
modifiers for@use
in #55583 - Typed getters for
Arr
helper in #55567
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 Friday my youngest daughter broke her leg. She was twirling while my oldest got ready for daycare. Twirling. She didn't hit anything or land wrong. She literally spun around so hard she fractured her tibia. While my logical brain understand the physics, my parental brain is still in shock.
Needless to say, I haven't gotten much done. I have been putting some final touches on WP Static with JT. We've gotten some usage from our public beta and continually made tweaks. But last week decided no more new changes until we hit our first financial milestone. You can keep polishing a side-project forever. But you'll never actually launch that way.
Anyway, tomorrow I'll continue my livestream building a Laravel/Cashier project to sell printed, signed copies of [BaseCode]((https://basecodefieldguide.com/). Then probably back to daddy daycare.
Weekly Tip
While working on WP Static I created a few value objects. While value objects are cool, what I really like with them (or any object) is using named constructors.
There aren't many examples in PHP. I mostly remember these from my Java days. But there are some examples in Laravel, and even more in Carbon.
Carbon::createFromDate(2025, 4, 29);Carbon::createFromTimestamp(1601735792);
Within WP Static I have some stats that can be created from a CSV or log file. So I have:
BundleStats::fromCsv('some/path/example-com.csv');BundleStats::fromLog('some/path/example-com.log');
I also make the __construct
method private
so objects can only be created through these named constructors.