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
@@ -107,7 +107,7 @@ Command | Description
107
107
<aname="dropping-indexes"></a>
108
108
## Dropping Indexes
109
109
110
-
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:
110
+
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
{
@@ -156,7 +156,7 @@ Below is a list of all available validation rules and their function:
156
156
<aname="rule-accepted"></a>
157
157
#### accepted
158
158
159
-
The field under validation must be _yes_, _on_, or _1_. This is useful for validation "Terms of Service" acceptance.
159
+
The field under validation must be _yes_, _on_, or _1_. This is useful for validating "Terms of Service" acceptance.
160
160
161
161
<aname="rule-active-url"></a>
162
162
#### active_url
@@ -406,7 +406,7 @@ Next, you need to register your custom Validator extension:
406
406
return new CustomValidator($translator, $data, $rules, $messages);
407
407
});
408
408
409
-
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.
409
+
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.
410
410
411
411
protected function replaceFoo($message, $attribute, $rule, $parameters)
0 commit comments