Is there anything with craft like Laravel's Form Requests?

I am writing a plugin with a custom entry type. Right now, I am doing the store/edit pages and I do not want to reinvent the wheel ;)

Is there any way in craft/yii to easily validate the submitted values from a post request? Or what is the best practice in this case for craft?

1 Answer 1


Yii 2 (which is what Craft 3 is built upon) has similar looking form/model validation:



You can also look at how Craft does it in its own models and controllers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.