What will wasChanged() show for Product A? What about for Product B?
How about just try it out yourself? In tinker or some test artisan command.
I'm writing some complex validations for an inventory table - a table of products. This Products table has a couple of related child tables. I'd like to save some resources by only running validations for fields that have changed.
Scenario: I edit Product A, change a couple of fields in the Product record and also change some of the data that's stored in one of the child tables. Next, I edit Product B and only change child-table data; the Product record isn't changed at all.
What will wasChanged() show for Product A? What about for Product B?
Please or to participate in this conversation.