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: schema.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ Command | Description
114
114
<aname="dropping-indexes"></a>
115
115
## Dropping Indexes
116
116
117
-
To drop index you must specify the index's name. Laravel assigns a reasonable name to the indexes by default. Simply concatenate the table name, the names of the column in the index, and the index type. Here are some examples:
117
+
To drop an index you must specify the index's name. Laravel assigns a reasonable name to the indexes by default. Simply concatenate the table name, the names of the column in the index, and the index type. Here are some examples:
Copy file name to clipboardExpand all lines: validation.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Laravel ships with a simple, convenient facility for validating data and retriev
19
19
array('name' => 'required|min:5')
20
20
);
21
21
22
-
The first argument passed to the `make` method is the data under validation. The second argument are the validation rules that should be applied to the data.
22
+
The first argument passed to the `make` method is the data under validation. The second argument is the validation rules that should be applied to the data.
23
23
24
24
Multiple rules may be delimited using either a "pipe" character, or as separate elements of an array.
25
25
@@ -30,7 +30,7 @@ Multiple rules may be delimited using either a "pipe" character, or as separate
30
30
array('name' => array('required', 'min:5'))
31
31
);
32
32
33
-
Once the a `Validator` instance has been created, the `fails` (or `passes`) method may be used to perform the validation.
33
+
Once a `Validator` instance has been created, the `fails` (or `passes`) method may be used to perform the validation.
34
34
35
35
if ($validator->fails())
36
36
{
@@ -157,7 +157,7 @@ Below is a list of all available validation rules and their function:
157
157
<aname="rule-accepted"></a>
158
158
#### accepted
159
159
160
-
The field under validation must be _yes_, _on_, or _1_. This is useful for validation "Terms of Service" acceptance.
160
+
The field under validation must be _yes_, _on_, or _1_. This is useful for validating "Terms of Service" acceptance.
161
161
162
162
<aname="rule-active-url"></a>
163
163
#### active_url
@@ -414,7 +414,7 @@ Next, you need to register your custom Validator extension:
414
414
return new CustomValidator($translator, $data, $rules, $messages);
415
415
});
416
416
417
-
When creating a custom validation rules, you may sometimes need to define custom place-holder replacements for error messages. You may do so by creating a custom Validator as described above, and adding a `replaceXXX` function to the validator.
417
+
When creating a custom validation rule, you may sometimes need to define custom place-holder replacements for error messages. You may do so by creating a custom Validator as described above, and adding a `replaceXXX` function to the validator.
418
418
419
419
protected function replaceFoo($message, $attribute, $rule, $parameters)
0 commit comments