Laravel 11.9, weekly updates, and 🔥 tip
Laravel 11.9
A few new features (including my own PR) in this week's release of Laravel 11.9. Here are the highlights:
- Prevent destructive commands from running in #51376
- Display test creation messages in #51546
- Add
withoutDelay()
toQueueable
in #51555 - Make
PendingCommand
macroable in #51572
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 mostly worked on the user impersonation feature I started in the live stream. While the proof of concept was complete within 20 minutes, I still need to tweak the UI and backfill some tests.
Thursday I pushed user impersonation live for the side-project (wppm.io). With this new ability, I could more easily reproduce the outstanding bugs. Still resolving a few of them, but I'm making progress.
To that point, it was having trouble getting into the flow state Friday. Not sure if it was the upcoming long weekend or just a case of the Mondays (but on Friday). Either way, I decided to stop trying to force myself and switch gears to house tasks.
Over the long weekend, I did work a bit on the Human Shifts here and there. I'll try to finish those up this week. I'll also live stream tomorrow.
🔥 Tip
The hot tip is add the following snippet to the boot
method of your AppServiceProvider
:
1DB::prohibitDestructiveCommands($this->app->isProduction());
You may read the full detail in my PR, but this will prevent you from accidentally running a command like migrate:fresh
or db:wipe
in production (like I did when deploying my side-project).