Skip to content

Commit f34e646

Browse files
committed
Minor grammar fixes
Signed-off-by: Benjamin Ruston <[email protected]>
1 parent c038795 commit f34e646

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Command | Description
107107
<a name="dropping-indexes"></a>
108108
## Dropping Indexes
109109

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:
111111

112112
Command | Description
113113
------------- | -------------

validation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Laravel ships with a simple, convenient facility for validating data and retriev
1919
array('name' => 'required|min:5')
2020
);
2121

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.
2323

2424
Multiple rules may be delimited using either a "pipe" character, or as separate elements of an array.
2525

@@ -30,7 +30,7 @@ Multiple rules may be delimited using either a "pipe" character, or as separate
3030
array('name' => array('required', 'min:5'))
3131
);
3232

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.
3434

3535
if ($validator->fails())
3636
{
@@ -156,7 +156,7 @@ Below is a list of all available validation rules and their function:
156156
<a name="rule-accepted"></a>
157157
#### accepted
158158

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.
160160

161161
<a name="rule-active-url"></a>
162162
#### active_url
@@ -406,7 +406,7 @@ Next, you need to register your custom Validator extension:
406406
return new CustomValidator($translator, $data, $rules, $messages);
407407
});
408408

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.
410410

411411
protected function replaceFoo($message, $attribute, $rule, $parameters)
412412
{

0 commit comments

Comments
 (0)