Laravel 10.10, weekly updates, and 🔥 tip
Laravel 10.10
More new features this week brings us to Laravel 10.10.0. Also more fun equations with the release numbers (10 - 10 = 0).
Here are the highlights:
- Gracefully handle invalid arguments for
e()
in #46914 - Mark commands as isolatable in #46925
- Add
UploadedFile::imageSize
to validate image dimensions in #46912 - Add ability to restore/set global scopes in #46922
- Expose
Js::json()
in #46935 - Add
Arr::sortRecursiveDesc()
in #46945 - New
Sleep
facade in #46904 - Add
hashed
cast in #46947 - Throw
timeoutException
instead ofmaxAttemptsExceededException
when job times out in #46968
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
The other week, I live streamed porting over more of the Workbench tasks to the new Shift CLI. I'm taking May off from live streaming. I have conferences and vacations this month which conflict. I'll continue to work on the Shift CLI to prepare it for a beta release in June.
Last week, I corrected one of the upsells on the Shift site. There is a "Run next Shift" link in the ...
menus. However, it was not appearing for latest Laravel 10.x Shift. I also discovered it didn't work for the Tailwind Shifts. So, now it upsells the next Tailwind Shift as well.
I also squashed a pesky bug that a few users had reported, but I was unable to determine. Fortunately the recent support email included the source file. After adding it to the test fixtures, I was able to reproduce the issue. You can see my full thread on Twitter, but it turned out to be line endings.
This week I'm going to try to PR another handy feature for Laravel Pint. Then, work on my talks for PHP[tek] next week.
🔥 Tip
Do the simple thing.
It seems so obvious, but with all the latest drama, I felt the need to remind everyone. I don't want to add to it. I'll simply reiterate do the simple thing, don't worry about what people think. Write the simplest code that works and move on with your life.