You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/4.digging-deeper/9.precognition.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,6 @@ Content-Type: application/json
39
39
40
40
Laravel will execute all middleware and run the form request or validator rules as usual, then immediately return the validation result. In this mode:
41
41
- 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.
43
43
44
44
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