No release, weekly updates, and weekly tip
No release
No release this week. I assume they are cooking for Laracon US.
Weekly Journal
Last week I finished up the outstanding Human Shifts. While there's more to do on one of them, the client opted for a pitstop to review things. Once verified, I'll continue the upgrade to Laravel 12.
I also completed the migration to SES. While this weekly update will be sent one last time using Mailgun, all transactional emails from laravelshift.com are being sent using SES.
I've mentioned before that I have a lot of custom artisan
commands for managing Shift. I caught myself doing a few repeated tasks in tinker
. So I started this week making some for tasks as well. For example, one to output a link to the Stripe payment for a given Shift.
Yesterday I spent a bit maintaining Blueprint. I got motivated after noticing it had crossed a million downloads. No new features really. Just merging PRs and reviewing untagged issues.
With the rest of the week, I plan to start converting the Shift order screen to Livewire. While this screen has been "good enough" for almost 10 years, there are some opportunities. Using Livewire will allow me to cater the page based on user input.
Weekly Tip
Piggybacking off of another Nuno thread, I've always felt Form Requests have some missing opportunities. Specifically around returning typed validated data.
Nuno, discusses putting these in a DTO (data transfer object). I personally find DTOs smell of a lazy class. Their value is really just the typing.
Leaving this aside, I do agree an object or at least typed data would be very easy to get from a Form Request. It already knows the types based on the validation rules. Casting those would be minimal. Mapping to an object would really just require a class reference.
There's something here for sure...