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 7dcc0d0 commit ac4791eCopy full SHA for ac4791e
README.md
@@ -25,6 +25,8 @@ Login example:
25
use Selective\Validation\ValidationException;
26
use Selective\Validation\ValidationResult;
27
28
+// ...
29
+
30
// Get all POST values
31
$data = $request->getParsedBody();
32
@@ -55,6 +57,8 @@ if ($validation->isFailed()) {
55
57
This validation middleware catches the `ValidationException` exception and converts it into a nice JSON response:
56
58
59
```php
60
+use Psr\Http\Message\ResponseInterface as Response;
61
+use Psr\Http\Message\ServerRequestInterface as Request;
62
63
64
// Validation middleware
0 commit comments