Laravel 10.32, weekly updates, and 🔥 tip
Laravel 10.32
Lots of fixes this week with a fast follow patch release that included a late PR by yours truly. This brings us to Laravel 10.32.1. Here are the highlights:
- Use container to resolve
EmailValidator
in #48942 - Add
getGlobalMiddleware
to HTTP Client Factory in #48950 - Add more implicit validation rules for
present
based on other fields in #48908 - Fix how nested transaction callbacks are handled in #48859
- Fix Batch callbacks not triggering if job timeout is in transaction in #48961
- Fix expressions in migration computations in #48976
- Fix issue with stderr for
]
character. in #48975 - Add
@elsePushIf
and@elsePush
in #48990 - Fix basic testing of chained batches in 37416f0
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 patched a few support issues as well as a few bug fixes to the Human Shifts that are out for review. Not much beyond that. Things typically slow down into year end. I use this time for refactoring and getting a head start on the Laravel 11.x Shift.
Mostly I worked on the tailwindification of the side-project. I got the UI for all the pages built out. Now I need to backfill the UX. I'm pairing with Jason Beggs on that. It's so much faster than doing it myself. Heck, with his help, I may even use a bit of Livewire. Hopefully by the end of the week the site will be fully functional. I'll just need to finalize the landing page. Just.
🔥 Tip
I like using stacks in my Blade templates. It's a nice way to push JavaScript (or any code) into other parts of the page. In working on the side-project, I had a situation where I only wanted to push the code if a certain request parameter existed. I thought I would need to wrap an @if
, but quickly checked for @pushIf
. Sure enough, it existed. Yet, when I went for @pushElseIf
, it did not. So I added it. Technically @elsePushIf
and @elsePush
were added to maintain consistency with other conditional Blade directive names. So, as of Laravel 10.32.1, @push
directives have full conditional logic.