Laravel 11.2, weekly updates, and 🔥 tip

Laravel 11.2

This week we'll start tracking Laravel 11 with its second minor release. Here are the from both highlights bringing us to Laravel 11.2.

  • Add --graceful to artisan migrate in #50486
  • Add mapSpread to Arr in #50474
  • Add list validation rule in #50454
  • Allow BackedEnum and UnitEnum for Rule::in and Rule::notIn in #50680
  • Introduce HASH_VERIFY ENV variable in #50718
  • Add withSchedule to bootstrap/app.php in #50755
  • Allow asserting no output by Artisan commands in #50702
  • Add *trim methods to Str in #50822
  • Add fluent helper in #50848
  • Add assertChain and assertNoChain to Job in #50858

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 Tuesday I returned from Laracon India. It was a life experience, with both ups and downs. Such high energy at the conference. Took about a hundred selfies. Everyone was so nice.

Unfortunately many of the speakers got sick after the speaker dinner. I guess this is pretty common for first time travelers to India. Delhi Belly was the joke. But it was no joke. I woke up in pain Saturday around midnight. I was able to scrounge enough medicine to give my talk. But many speakers needed to swap days. I actually gave two talks to fill in. All good though as I sort of owed them a talk from last year.

With the rest of last week I caught up on sleep, re-adjusted to American food, and, of course, spent lots of time with my girls.

Over the weekend I updated the Laravel Fixer and Upgrade Checker for Laravel 11. I also re-released the April Fools' Shift.

This week I plan to continue my Wednesday live streams, and return to working on the side project.

🔥 Tip

The recently added withSchedule method in bootstrap/app.php is pretty nice. I think I prefer it over scheduling commands within routes/console.php. I definitely like the latter over the old console kernel for sure. But now that I've gotten familiar with the new application bootstrapping, it feels like scheduled commands belong with the rest of the bootstrapping. If it gains some traction, I may update the Laravel 11.x Shift to register them here instead.