Sean Kegel
Thank you for the comment and reading the article!
Yes, I run into it relatively often, but I like to use Validation in non-standard ways, also outside of the context of controller. Some example use cases:
- only "pending" Appointments can be completed
- Only "active" subscriptions can have scheduled generated automatically
- "Project summary" can be sent for only active projects
etc.
In none of the above, I am validating form input, but rather the state of the object on which I am performing some action.
Maybe there's a better pattern to do it, but I am quite happy with using validation for that.
For more context, you can check what I wrote earlier this year on how I use validation:
annissimo.com/using-laravel-validation-outside-of…