We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecfed4b commit 8b1f30dCopy full SHA for 8b1f30d
.github/README.md
@@ -230,6 +230,10 @@ $someQueryValidValue = $rules->query()->key('someKey')->string()->parseInt()->mi
230
231
// validate something from request body with json format
232
$someJsonValidValue = $rules->json()->object()->property('someProperty')->string()->notEmpty()->max(255)->notNull();
233
+/**
234
+ * @var \SimpleAsFuck\Validator\Rule\Custom\UserClassRule<YourClass> $yourClassRule
235
+ */
236
+$yourModelFromRequestBody = $rules->json()->object()->class($yourClassRule)->notNull();
237
238
239
0 commit comments