henninghorn's avatar

ValidatesWhenResolved in Lumen, does it work?

Can anyone else confirm that ValidatesWhenResolved doesn't work in Lumen?

I'm trying to re-create a simple Form Request logic in Lumen, but this ValidatesWhenResolved doesn't seem to work.

The ->validate method doesn't seem to run at all, when I inject the class into a method/function.

0 likes
2 replies
Andreyco's avatar

I am trying this as well.
Request is not validated as it is resolved in Lumen. I think we should take a look one level higher, to whatever resolves request.
To clearly answer your question, no, it does not work in Lumen.

Although you can use "Route/Controller Validation" I am considering using Laravel for API instead just for absence of "true" form requests. Gosh, I am so spoiled.

Please or to participate in this conversation.