Laravel 9.36, weekly updates, and 🔥 tip
Laravel 9.36
Had a fast follow patch release last week and some new features this week bringing us to Laravel 9.36. Here are the highlights:
- Make Blade Components blazing fast in #44487
- Add Mailable test assertions in #44563
- Add
TestResponse::assertContent()
in #44580 - Ability to disable route scope bindings in #44528
- Add
TestResponse::assertServerError
in #44619 - Allow
MustVerifyEmail
to be used on models withoutid
in #44613
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 continued working on Blueprint for Hacktober. I've punted the ability to customize the generated code for a while. The whole premise of Blueprint is to leverage Laravel's conventions. So adding the ability to change table names and such feels antithetical. But adding it closes multiple feature requests. Anyway, I'll continue adding this feature tomorrow.
I also ran the Mid Shift for subscribers to a Shifty Plan. This is an exclusive Shift which runs halfway through Laravel's release cycle to ensure core files and dependencies are up-to-date.
At the end of the week, I had a large Human Shift come in to upgrade an old Laravel 4.2 application. Unfortunately I wasn't feeling that well Friday. So I took it easy over the weekend. I'll start working on that later today.
🔥 Tip
Since I've been out of commission the last few days, I didn't write much code. So, I'll reshare this tweet about the recent data cast methods I added to the Request object.
I'm not hardcore about typing my code. But I do find myself adding parameter types and return types for new code. I also like ensuring type is preserved across the various layers of my application (database, code, API, etc). So these make it easy to persist those types.