4 posts
If `#[RouteParameter]` in your Laravel form request receives a string instead of a model, the issue is usually not that the attribute failed to bind. It is that the attribute never binds anything in the first place.
Learn how Laravel's distinct validation rule can help ensure uniqueness across array items in your form requests, preventing ambiguous references before they cause problems downstream.
I often use more semantic names in my API surfaces that need mapping back to database fields. Here's one approach I reach for.
I'd been having very slow Livewire tests in my application but hadn't put much stock into it until I started work on the app again and was running the suite often.