Laravel 11.5, weekly updates, and 🔥 tip

Laravel 11.5

Another minor release of Laravel 11 this week brings us to Laravel 11.5. There were some cool features in last week's release I'll highlight too.

  • Allow sorting of route:list by multiple values using a comma #50998
  • Added eachById and chunkByIdDesc to BelongsToMany #50991
  • Introduce Exceptions fake #50704
  • Add afterQuery hook #50587
  • Add RequiredIfDeclined validation rule #51030
  • Add support for enums on mapInto collection method #51027
  • Add throttle to LazyCollection #51060
  • Ability to generate URL's with query params #51075
  • Add anonymous broadcasting #51082

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

I was sick all last week with the flu. Not "flu" like generally ill, but flu like influenza. Needless to say, I didn't do much at the computer screen during that time. Monday was probably the first day I felt well enough to focus.

I had a Human Shift I needed to finish. Then did some spring cleaning on the laravelshift.com project. Mainly an audit for dead code and bumping versions in the CI workflow.

With the rest of this week I came up to PHP[Tek] to hang with my Normal Crew and talk about testing.

🔥 Tip

I've probably talked about it before, but some spring cleaning of your code is always nice. I used to do refactor Fridays at least once a month and have gotten out of that practice. It's worthwhile. Doesn't need to be every week or even a full day. But if things are going slow or you're having trouble focusing (like after the flu), sometimes simple tasks like applying your code style or checking the CI logs are a little trick to get back to productivity.