Skip to content

Commit 75f6257

Browse files
authored
Fix typos (laravel#8149)
1 parent f5aa53d commit 75f6257

18 files changed

+31
-31
lines changed

Diff for: billing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ You may also create subscriptions from the Stripe dashboard itself. When doing s
746746

747747
In addition, you may only create one type of subscription via the Stripe dashboard. If your application offers multiple subscriptions that use different names, only one type of subscription may be added through the Stripe dashboard.
748748

749-
Finally, you should always make sure to only add one active subscription per type of subscription offered by your application. If customer has two `default` subscriptions, only the most recently added subscription will be used by Cashier even though both would be synced with your application's database.
749+
Finally, you should always make sure to only add one active subscription per type of subscription offered by your application. If a customer has two `default` subscriptions, only the most recently added subscription will be used by Cashier even though both would be synced with your application's database.
750750

751751
<a name="checking-subscription-status"></a>
752752
### Checking Subscription Status

Diff for: cashier-paddle.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ If you would like to swap plans and immediately invoice the user instead of wait
739739
<a name="prorations"></a>
740740
#### Prorations
741741

742-
By default, Paddle prorates charges when swapping between plans. The `noProrate` method may be used to update the subscription's without prorating the charges:
742+
By default, Paddle prorates charges when swapping between plans. The `noProrate` method may be used to update the subscriptions without prorating the charges:
743743

744744
$user->subscription('default')->noProrate()->swap($premium = 34567);
745745

Diff for: database.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ To get started, you should schedule the `db:monitor` command to [run every minut
420420
php artisan db:monitor --databases=mysql,pgsql --max=100
421421
```
422422

423-
Scheduling this command alone is not enough to trigger a notification alerting you of the number of open connections. When the command encounters a database that has a open connection count that exceeds your threshold, a `DatabaseBusy` event will be dispatched. You should listen for this event within your application's `EventServiceProvider` in order to send a notification to you or your development team:
423+
Scheduling this command alone is not enough to trigger a notification alerting you of the number of open connections. When the command encounters a database that has an open connection count that exceeds your threshold, a `DatabaseBusy` event will be dispatched. You should listen for this event within your application's `EventServiceProvider` in order to send a notification to you or your development team:
424424

425425
```php
426426
use App\Notifications\DatabaseApproachingMaxConnections;

Diff for: dusk.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ The `press` method may be used to click a button element on the page. The argume
583583

584584
$browser->press('Login');
585585

586-
When submitting forms, many application's disable the form's submission button after it is pressed and then re-enable the button when the form submission's HTTP request is complete. To press a button and wait for the button to be re-enabled, you may use the `pressAndWaitFor` method:
586+
When submitting forms, many applications disable the form's submission button after it is pressed and then re-enable the button when the form submission's HTTP request is complete. To press a button and wait for the button to be re-enabled, you may use the `pressAndWaitFor` method:
587587

588588
// Press the button and wait a maximum of 5 seconds for it to be enabled...
589589
$browser->pressAndWaitFor('Save');
@@ -1884,7 +1884,7 @@ script:
18841884
<a name="running-tests-on-github-actions"></a>
18851885
### GitHub Actions
18861886
1887-
If you are using [Github Actions](https://github.com/features/actions) to run your Dusk tests, you may use the following configuration file as a starting point. Like TravisCI, we will use the `php artisan serve` command to launch PHP's built-in web server:
1887+
If you are using [GitHub Actions](https://github.com/features/actions) to run your Dusk tests, you may use the following configuration file as a starting point. Like TravisCI, we will use the `php artisan serve` command to launch PHP's built-in web server:
18881888

18891889
```yaml
18901890
name: CI

Diff for: eloquent-mutators.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ The mutator closure will receive the value that is being set on the attribute, a
172172

173173
$user->first_name = 'Sally';
174174

175-
In this example, the `set` callback will be called with the value `Sally`. The mutator will then apply the `strtolower` function to the name and set its resulting value in model's the internal `$attributes` array.
175+
In this example, the `set` callback will be called with the value `Sally`. The mutator will then apply the `strtolower` function to the name and set its resulting value in the model's internal `$attributes` array.
176176

177177
<a name="mutating-multiple-attributes"></a>
178178
#### Mutating Multiple Attributes

Diff for: eloquent-resources.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,12 @@ By default, your outermost resource is wrapped in a `data` key when the resource
323323
{
324324
"id": 1,
325325
"name": "Eladio Schroeder Sr.",
326-
"email": "[email protected]",
326+
"email": "[email protected]"
327327
},
328328
{
329329
"id": 2,
330330
"name": "Liliana Mayert",
331-
"email": "[email protected]",
331+
"email": "[email protected]"
332332
}
333333
]
334334
}
@@ -425,12 +425,12 @@ When returning paginated collections via a resource response, Laravel will wrap
425425
{
426426
"id": 1,
427427
"name": "Eladio Schroeder Sr.",
428-
"email": "[email protected]",
428+
"email": "[email protected]"
429429
},
430430
{
431431
"id": 2,
432432
"name": "Liliana Mayert",
433-
"email": "[email protected]",
433+
"email": "[email protected]"
434434
}
435435
],
436436
"links":{
@@ -471,12 +471,12 @@ Paginated responses always contain `meta` and `links` keys with information abou
471471
{
472472
"id": 1,
473473
"name": "Eladio Schroeder Sr.",
474-
"email": "[email protected]",
474+
"email": "[email protected]"
475475
},
476476
{
477477
"id": 2,
478478
"name": "Liliana Mayert",
479-
"email": "[email protected]",
479+
"email": "[email protected]"
480480
}
481481
],
482482
"links":{
@@ -599,7 +599,7 @@ In addition to conditionally including relationships, you may conditionally incl
599599

600600
new UserResource($user->loadCount('posts'));
601601

602-
The `whenCounted` method may be used to conditionally include a relationship's count in your resource response. This method avoids unnecessarily including the attribute if the relationships's count is not present:
602+
The `whenCounted` method may be used to conditionally include a relationship's count in your resource response. This method avoids unnecessarily including the attribute if the relationships' count is not present:
603603

604604
/**
605605
* Transform the resource into an array.

Diff for: http-client.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ You may specify the maximum number of seconds to wait while trying to connect to
177177
<a name="retries"></a>
178178
### Retries
179179

180-
If you would like HTTP client to automatically retry the request if a client or server error occurs, you may use the `retry` method. The `retry` method accepts the maximum number of times the request should be attempted and the number of milliseconds that Laravel should wait in between attempts:
180+
If you would like the HTTP client to automatically retry the request if a client or server error occurs, you may use the `retry` method. The `retry` method accepts the maximum number of times the request should be attempted and the number of milliseconds that Laravel should wait in between attempts:
181181

182182
$response = Http::retry(3, 100)->post(/* ... */);
183183

@@ -187,7 +187,7 @@ If needed, you may pass a third argument to the `retry` method. The third argume
187187
return $exception instanceof ConnectionException;
188188
})->post(/* ... */);
189189

190-
If a request attempt fails, you may wish to make a change to the request before a new attempt is made. You can achieve this by modifying request argument provided to the callable you provided to the `retry` method. For example, you might want to retry the request with a new authorization token if the first attempt returned an authentication error:
190+
If a request attempt fails, you may wish to make a change to the request before a new attempt is made. You can achieve this by modifying the request argument provided to the callable you provided to the `retry` method. For example, you might want to retry the request with a new authorization token if the first attempt returned an authentication error:
191191

192192
$response = Http::withToken($this->getToken())->retry(2, 0, function ($exception, $request) {
193193
if (! $exception instanceof RequestException || $exception->response->status() !== 401) {

Diff for: http-tests.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ Assert that the response contains the given cookie and it is not expired:
698698
<a name="assert-cookie-missing"></a>
699699
#### assertCookieMissing
700700

701-
Assert that the response does not contains the given cookie:
701+
Assert that the response does not contain the given cookie:
702702

703703
$response->assertCookieMissing($cookieName);
704704

@@ -828,7 +828,7 @@ Assert that the response contains the given data at the specified path:
828828

829829
For example, if the following JSON response is returned by your application:
830830

831-
```js
831+
```json
832832
{
833833
"user": {
834834
"name": "Steve Schoger"
@@ -849,7 +849,7 @@ Assert that the response does not contain the given path:
849849

850850
For example, if the following JSON response is returned by your application:
851851

852-
```js
852+
```json
853853
{
854854
"user": {
855855
"name": "Steve Schoger"
@@ -870,7 +870,7 @@ Assert that the response has a given JSON structure:
870870

871871
For example, if the JSON response returned by your application contains the following data:
872872

873-
```js
873+
```json
874874
{
875875
"user": {
876876
"name": "Steve Schoger"
@@ -888,7 +888,7 @@ You may assert that the JSON structure matches your expectations like so:
888888

889889
Sometimes, JSON responses returned by your application may contain arrays of objects:
890890

891-
```js
891+
```json
892892
{
893893
"user": [
894894
{

Diff for: localization.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Laravel provides two ways to manage translation strings. First, language strings
2424
/es
2525
messages.php
2626

27-
Or, translation strings may be defined within JSON files that are placed within the `lang` directory. When taking this approach, each language supported by your application would have a corresponding JSON file within this directory. This approach is recommended for application's that have a large number of translatable strings:
27+
Or, translation strings may be defined within JSON files that are placed within the `lang` directory. When taking this approach, each language supported by your application would have a corresponding JSON file within this directory. This approach is recommended for applications that have a large number of translatable strings:
2828

2929
/lang
3030
en.json

Diff for: mocking.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ You may use the `Bus` facade's `fake` method to prevent jobs from being dispatch
178178
// Assert that a job was dispatched synchronously...
179179
Bus::assertDispatchedSync(AnotherJob::class);
180180

181-
// Assert that a job was not dipatched synchronously...
181+
// Assert that a job was not dispatched synchronously...
182182
Bus::assertNotDispatchedSync(AnotherJob::class);
183183

184184
// Assert that a job was dispatched after the response was sent...

Diff for: notifications.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<a name="introduction"></a>
5353
## Introduction
5454

55-
In addition to support for [sending email](/docs/{{version}}/mail), Laravel provides support for sending notifications across a variety of delivery channels, including email, SMS (via [Vonage](https://www.vonage.com/communications-apis/), formerly known as Nexmo), and [Slack](https://slack.com). In addition, a variety of [community built notification channels](https://laravel-notification-channels.com/about/#suggesting-a-new-channel) have been created to send notification over dozens of different channels! Notifications may also be stored in a database so they may be displayed in your web interface.
55+
In addition to support for [sending email](/docs/{{version}}/mail), Laravel provides support for sending notifications across a variety of delivery channels, including email, SMS (via [Vonage](https://www.vonage.com/communications-apis/), formerly known as Nexmo), and [Slack](https://slack.com). In addition, a variety of [community built notification channels](https://laravel-notification-channels.com/about/#suggesting-a-new-channel) have been created to send notifications over dozens of different channels! Notifications may also be stored in a database so they may be displayed in your web interface.
5656

5757
Typically, notifications should be short, informational messages that notify users of something that occurred in your application. For example, if you are writing a billing application, you might send an "Invoice Paid" notification to your users via the email and SMS channels.
5858

Diff for: pagination.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ If you need to append a "hash fragment" to URLs generated by the paginator, you
212212

213213
When calling the `paginate` method, you will receive an instance of `Illuminate\Pagination\LengthAwarePaginator`, while calling the `simplePaginate` method returns an instance of `Illuminate\Pagination\Paginator`. And, finally, calling the `cursorPaginate` method returns an instance of `Illuminate\Pagination\CursorPaginator`.
214214

215-
These objects provide several methods that describe the result set. In addition to these helpers methods, the paginator instances are iterators and may be looped as an array. So, once you have retrieved the results, you may display the results and render the page links using [Blade](/docs/{{version}}/blade):
215+
These objects provide several methods that describe the result set. In addition to these helper methods, the paginator instances are iterators and may be looped as an array. So, once you have retrieved the results, you may display the results and render the page links using [Blade](/docs/{{version}}/blade):
216216

217217
```blade
218218
<div class="container">

Diff for: queues.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ php artisan queue:work
14651465
> **Note**
14661466
> To keep the `queue:work` process running permanently in the background, you should use a process monitor such as [Supervisor](#supervisor-configuration) to ensure that the queue worker does not stop running.
14671467
1468-
Remember, queue workers, are long-lived processes and store the booted application state in memory. As a result, they will not notice changes in your code base after they have been started. So, during your deployment process, be sure to [restart your queue workers](#queue-workers-and-deployment). In addition, remember that any static state created or modified by your application will not be automatically reset between jobs.
1468+
Remember, queue workers are long-lived processes and store the booted application state in memory. As a result, they will not notice changes in your code base after they have been started. So, during your deployment process, be sure to [restart your queue workers](#queue-workers-and-deployment). In addition, remember that any static state created or modified by your application will not be automatically reset between jobs.
14691469

14701470
Alternatively, you may run the `queue:listen` command. When using the `queue:listen` command, you don't have to manually restart the worker when you want to reload your updated code or reset the application state; however, this command is significantly less efficient than the `queue:work` command:
14711471

Diff for: redis.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ In addition to the default `scheme`, `host`, `port`, `database`, and `password`
183183
<a name="phpredis-serialization"></a>
184184
#### phpredis Serialization & Compression
185185

186-
The phpredis extension may also be configured to use a variety serialization and compression algorithms. These algorithms can be configured via the `options` array of your Redis configuration:
186+
The phpredis extension may also be configured to use a variety of serialization and compression algorithms. These algorithms can be configured via the `options` array of your Redis configuration:
187187

188188
'redis' => [
189189

Diff for: sail.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ The Sail `test` command is equivalent to running the `test` Artisan command:
271271
sail artisan test
272272
```
273273

274-
By default, Sail will create a dedicated `testing` database that your tests do not interfere with the current state of your database. In a default Laravel installation, Sail will also configure your `phpunit.xml` file to use this database when executing your tests:
274+
By default, Sail will create a dedicated `testing` database so that your tests do not interfere with the current state of your database. In a default Laravel installation, Sail will also configure your `phpunit.xml` file to use this database when executing your tests:
275275

276276
```xml
277277
<env name="DB_DATABASE" value="testing"/>

Diff for: scout.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ By default, the entire `toArray` form of a given model will be persisted to its
184184
<a name="configuring-the-model-id"></a>
185185
### Configuring The Model ID
186186

187-
By default, Scout will use the primary key of the model as model's unique ID / key that is stored in the search index. If you need to customize this behavior, you may override the `getScoutKey` and the `getScoutKeyName` methods on the model:
187+
By default, Scout will use the primary key of the model as the model's unique ID / key that is stored in the search index. If you need to customize this behavior, you may override the `getScoutKey` and the `getScoutKeyName` methods on the model:
188188

189189
<?php
190190

Diff for: starter-kits.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ While you are welcome to use these starter kits, they are not required. You are
2020

2121
[Laravel Breeze](https://github.com/laravel/breeze) is a minimal, simple implementation of all of Laravel's [authentication features](/docs/{{version}}/authentication), including login, registration, password reset, email verification, and password confirmation. Laravel Breeze's default view layer is made up of simple [Blade templates](/docs/{{version}}/blade) styled with [Tailwind CSS](https://tailwindcss.com). Or, Breeze can scaffold your application using Vue or React and [Inertia](https://inertiajs.com).
2222

23-
Breeze provides a wonderful starting point for beginning a fresh Laravel application and is also great choice for projects that plan to take their Blade templates to the next level with [Laravel Livewire](https://laravel-livewire.com).
23+
Breeze provides a wonderful starting point for beginning a fresh Laravel application and is also a great choice for projects that plan to take their Blade templates to the next level with [Laravel Livewire](https://laravel-livewire.com).
2424

2525
<img src="https://laravel.com/img/docs/breeze-register.png">
2626

0 commit comments

Comments
 (0)