We will look at a couple of common scenarios where adding a couple of lines to your tests can future-proof your application from data loss when using Model Observers.
PHP
#[RouteParameter] Does Not Bind Your Model
Michael Dyrynda explains a subtle Laravel gotcha: #[RouteParameter] only reads the current route parameter value, it does not perform implicit model binding. Good reminder that the controller signature still matters when you expect a bound Read more…