Laravel 9.43, weekly updates, and 🔥 tip

Laravel 9.43

Several patch releases last week, with a few new features this week brings us to Laravel 9.43. Here are the highlights:

  • Allow passing base64 key to env:encrypt in #45157
  • Replace model:show search value with FQCN in #45160
  • Add support for eager loading specific columns to withWhereHas in #45168
  • Display policies in model:show in #45153
  • Add Str::whenIsUlid in #45183

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 continued editing the videos for my upcoming Laracasts CreatorSeries. This took for-ev-er. But I finally finished this morning.

I also live streamed adding a --dirty option to Laravel Pint. After some feedback from Nuno, I'll make more tweaks to this in tomorrow's live stream.

Otherwise, I am awaiting the release of daughter v2. There's an auto-deloy tomorrow if she doesn't launch today. Until then, I am filling time with the remaining Human Shifts.

🔥 Tip

When writing collection pipelines, I often find myself in a place where I need to flatten the collection into a subset of its keys and values. As such, I reach for flatten(). However, a majority of the time, what I really need is mapWithKeys(). So, the tip is, try mapWithKeys first.