This pattern is brilliant and can make your code much more clean and consistent

This pattern is brilliant and can make your code much more clean and consistent

🔥 I often find myself keeping validation rules in a method on the model. This lets me reuse them wherever I may need - including in controllers or form requests.

We're writing a book, you can get it for free here.