Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

marcoshita's avatar

Custom Http Request Class

How can I make a request class with rules and error messages that doens't extends from Form Request, because I want the petition to be Http. I did it with validator and giving the rules inside the method but It's cleaner to have all inside de custom request class.

0 likes
1 reply
martinbean's avatar

@marcoshita I don’t really understand what it is you’re asking. Rules and messages for what? And what do you mean, you “want the petition to be Http”?

Please or to participate in this conversation.