Laravel 10.43, weekly updates, and 🔥 tip
Laravel 10.43
Falling behind this past few weeks... yesterday, the weekly minor release was tagged bringing us to Laravel 10.43. Here are the highlights:
- Add
storage:unlink
command in #49795 - Support
::class
string argument for global scopes in #49802 - Add
hasIndex()
toSchema
in #49796 - Do not touch
BelongsToMany
relation when usingwithoutTouching
in #49798 - Add
addGlobalScopes
toEloquent
in #49880 - Add support for streamed JSON responses in #49873
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
Long weekend for me as the girls were sick. Then, of course, I got sick. In between I finished up the Human Shift from last week and merged some PRs from Saurabh.
This week has been bouncing between the Laravel 11.x Shift and the side-project. Both of which I hope to put into public beta next week.
🔥 Tip
I do a lot of string manipulation within the Shift codebase. Something I thought would be cool is a shorthand assignment operator, like .=
, but to prefix a string.
For example:
$string = 'cool';$string ~= 'this would be ';// this would be cool
So far, Twitter has found it a bit brain bending. But, as with all syntactic sugar, you wouldn't have to use it. Still be cool though.