Laravel 9.34, weekly updates, and 🔥 tip

Laravel 9.34

There was a release last Friday as well as today, bringing us to Laravel 9.34. Here are the highlights from both:

  • Add ignore case argument for Str::contains and Str::containsAll in #44369
  • Add missing morphs methods for the ULID support in #44364
  • Introduce Laravel Precognition in #44339
  • Short attribute syntax for self-closing Blade Components in #44413
  • Allow creating databases with dots in #44436
  • Allow factories to recycle multiple models of a given type in #44328
  • Add support for PHP's BackedEnum to be "rendered" by blade views in #44445

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 live streamed adding the web UI for the curl converter I built a few weeks ago. I launched it later that day after making some tweaks to the validation as well as the converter itself.

Thursday I revisited the dependency bumps done by Shift. Starting with the Laravel 6.x Shift, the constraints for many packages are automatically updated. Before these bumped to the latest version. However, this has turned out to be a bit aggressive.

So Shift now bumps to the earliest compatible version for that version of Laravel (and PHP if configured). It also notes which packages were bumped by a major version. This should improve the DX when upgrading. Especially if you're not upgrading to the latest version of Laravel in one go.

Friday I had a Human Shift come in to upgrade an application running Laravel 5.7. It was a rather large codebase, but the big challenge is the high number of packages. A reminder, while packages are great, they come with their own maintenance cost. Unfortunately one Shift can't always help automate.

Over the weekend I took some time to set up my new audio equipment. I wanted to test it out, so I took the opportunity to record a new season of The BaseCode Podcast. Unfortunately Jess won't be able to join for this one. Since I'm solo, I figured I'd talk about Shift. Mostly the business side of things. If you have anything you'd like to hear more about, reply and I'll cover it in an episode this season.

This week I'm going to switch gears with my live streams. Since it's October (Hacktober) I will focus on maintaining Blueprint. Hopefully closing out all the open issues and adding a few requested features.

🔥 Tip

Yesterday I came across this tweet about a feature in Laravel I wasn't aware of. So I'm going to reshare it.

Laravel has a callback which allows you to monitor long queries. In the past, this is something I did by configuring MySQL (which can be scary). So it's nice to see Laravel provides a convenient way to do this from the application layer.