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: laravel/documenting/50-query-body-parameters.md
+29-1
Original file line number
Diff line number
Diff line change
@@ -277,7 +277,7 @@ These two approaches are very different:
277
277
:::note
278
278
Form requests are not initialized by Scribe in the same way as Laravel would, since there is no real HTTP request when generating. If you encounter strange behaviour, you can try customising the initialization process with the [`instantiateFormRequestUsing()` hook](/laravel/hooks#instantiateformrequestusing).
279
279
:::
280
-
- With inline validators, Scribe will read and parse the validation code in your controller (`$request->validate()` or `Validator::make()`).
280
+
- With inline validators, Scribe will read and parse the validation code in your controller (`$request->validate()`, `Request::validate` or `Validator::make()`).
281
281
282
282
Since these rules only describe validation logic, Scribe allows you to provide extra information, like a description and example:
283
283
- For form requests, add a `bodyParameters()`/`queryParameters()` method where you can add a description and example for each parameter.
@@ -295,6 +295,7 @@ If you have rules that Scribe doesn't support, Scribe's generated value might no
0 commit comments