Skip to content

Commit b5e9097

Browse files
committed
Update 9.precognition.md
1 parent e0ccb6f commit b5e9097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/4.digging-deeper/9.precognition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ Content-Type: application/json
3939

4040
Laravel will execute all middleware and run the form request or validator rules as usual, then immediately return the validation result. In this mode:
4141
- If the data fails validation, you will receive a 422 Unprocessable Entity with the validation errors.
42-
- If it passes validation, you will receive a 200 OK response and no database action is taken.
42+
- If it passes validation, you will receive a 204 No Content response and no database action is taken.
4343

4444
In short, the request is validated but the controller method is never called, allowing you to get “live” validation feedback from the API without performing the actual operation.

0 commit comments

Comments
 (0)