Laravel 10.11, weekly updates, and 🔥 tip

Laravel 10.11

A patch release last week and a few new features this week brings us to Laravel 10.11.0. Here are the highlights:

  • Add Arr::mapWithKeys() in #47000
  • Add Carbon dd() and dump() methods in #47002
  • File failed job storage driver in #47007
  • Add arguments to the signed middleware to ignore properties in #46987
  • Add timestamp retrieval as Carbon instance from UUID/ULID in #47046
  • Remove workarounds for old Guzzle versions in #47084
  • Add Macroable to Sleep in #47099

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

Had a few Human Shifts come in last week. So I mostly focused on those, as well as preparing my talks for PHP[tek]. That has continued into this week. So between the conference today and tomorrow, and the remaining hours on the Human Shifts, this week is pretty full.

🔥 Tip

In preparing for my testing workshop, I came across a failing test due to some underlying events being fired when creating a model factory. As an aside, this is one of the reasons I am reluctant to use events, especially model events. They feel like these unknown side effects.

Anyway, the common approach here might be to add Event::fake(). But this is a bit heavy handed. Especially if your code actually triggers an event you want to fire. In digging around, I came across createQuietly (and other methods). This was perfect as it isolated the events to the area causing the test difficulty.