Laravel 9.23, weekly updates, and 🔥 tip
Laravel 9.23
A patch release last week and a few new features this week brings us to Laravel 9.23. Here are the highlights:
- Add unique locking to broadcast events in #43416
- Make
Command
componentsFactory
extensible in #43439 - Add
deleteQuietly()
toEloquent
in #43447 - Allow simple bindings via
$singleton
property in #43469 - Add
Conditionable
trait toFilesystem
adapters in #43450 - Introduce
artisan docs
in #43357 - Support
Conditionable
objects that get condition from target object in #43449 - Support CSP nonce, SRI, and arbitrary attributes for Vite in #43442
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 live streamed adding support to the CI Generator for Pint. While I completed this for GitHub Actions, I need to make some tweaks for Bitbucket and GitLab as they do not have an "action" which supports Pint. I'll continue to work on that this week.
I was out Thursday and Friday for a long weekend to see Rage Against the Machine. This trip was 3 years in the making as they had canceled for Covid in 2020 and 2021. So it was great to finally see them again live. Probably for the last time.
This week I'm working on a task that has been on my Todo List for over a year - creating Shift workers dynamically. I'll live stream getting started with this tomorrow. The goal will be to spawn new queue workers when Shift has a high job backlog.
🔥 Tip
I noticed a habit of strictly escaping single quoted strings. For example, while the following string doesn't require escaping:
$fqcn = 'Illuminate\Http\Request';
I still strictly escape the slashes:
$fqcn = 'Illuminate\\Http\\Request';
I do this because I often write regular expressions and build string output for Shift. Being explicit and strictly escaping single quoted strings avoids tracking down a very pesky bug.