Laravel 10.1, weekly updates, and 🔥 tip

Laravel 10.1

While there were a few patch releases last week, this is the first weekly Laravel 10 release bringing us to Laravel 10.1.

Here are the highlights:

  • Show queue connection in MonitorCommand in #46122
  • Standard input can be applied to PendingProcess in #46119
  • Fix Expression string casting in #46137
  • Remove return type on controller stubs in #46166
  • Use secure randomness in Arr:random and Arr:shuffle in #46105
  • Add missing expression support for pluck in #46146

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 made all sorts of improvements to the Laravel 10.x Shift. I highlighted most of them in a Twitter thread. I even live streamed a few of these fixes.

Over the weekend, I began preparing for my trip to Laravel IN. Unfortunately, I woke up early Monday morning with a fever. I went into the doctors thinking I might have strep throat, but I tested positive for Covid. So after not catching it for the last 3 years, I catch it 2 days before my trip. Needless to say, I had to cancel and am pretty bummed.

I probably won't do much this week other than support emails as I recover and avoid Twitter as not to have too much FOMO in regards to Laracon IN.

🔥 Tip

Almost immediately I noticed Shift feedback around the return types for controller actions. I expected a bit of blowback on the type hints added in Laravel 10. As you might have noticed in the highlights, Laravel has since removed the return type from the controller stubs.

The Laravel 10.x Shift only adds the return type to a controller action when it finds a single type used by all its return statements, or when a single, custom (not Illuminate\Http\Response) type set in the @return DocBlock tag.