Skip to content

Commit 12218de

Browse files
committed
Merge pull request laravel#181 from bruston/bruston-docfix
Minor grammar fixes
2 parents 81457d7 + b2ecf9a commit 12218de

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
@@ -114,7 +114,7 @@ Command | Description
114114
<a name="dropping-indexes"></a>
115115
## Dropping Indexes
116116

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

119119
Command | Description
120120
------------- | -------------

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
{
@@ -157,7 +157,7 @@ Below is a list of all available validation rules and their function:
157157
<a name="rule-accepted"></a>
158158
#### accepted
159159

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

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

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

419419
protected function replaceFoo($message, $attribute, $rule, $parameters)
420420
{

0 commit comments

Comments
 (0)