Skip to content

Commit f2d0a57

Browse files
committed
fix method
1 parent ab594b1 commit f2d0a57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ As you can see, we simply pass the incoming HTTP request and desired validation
105105

106106
#### Stopping On First Validation Failure
107107

108-
Sometimes you may wish to stop running validation rules on an attribute after the first validation failure. To do so, assign the `fail_once` rule to the attribute:
108+
Sometimes you may wish to stop running validation rules on an attribute after the first validation failure. To do so, assign the `bail` rule to the attribute:
109109

110110
$this->validate($request, [
111-
'title' => 'fail_once|required|unique:posts|max:255',
111+
'title' => 'bail|required|unique:posts|max:255',
112112
'body' => 'required',
113113
]);
114114

0 commit comments

Comments
 (0)