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: artisan.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -166,7 +166,7 @@ Closure based commands provide an alternative to defining console commands as cl
166
166
require base_path('routes/console.php');
167
167
}
168
168
169
-
Even though this file does not define HTTP routes, it defines console based entry points (routes) into your application. Within this file, you may define all of your closure based console commands using the `Artisan::command` method. The `command` method accepts two arguments: the [command signature](#defining-input-expectations) and a closure which receives the commands arguments and options:
169
+
Even though this file does not define HTTP routes, it defines console based entry points (routes) into your application. Within this file, you may define all of your closure based console commands using the `Artisan::command` method. The `command` method accepts two arguments: the [command signature](#defining-input-expectations) and a closure which receives the command's arguments and options:
170
170
171
171
Artisan::command('mail:send {user}', function ($user) {
Copy file name to clipboardExpand all lines: billing.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -639,7 +639,7 @@ After a customer is subscribed to your application, they may occasionally want t
639
639
640
640
$user->subscription('default')->swap('price_id');
641
641
642
-
If the customer is on trial, the trial period will be maintained. Also, if a "quantity" exists for the subscription, that quantity will also be maintained.
642
+
If the customer is on trial, the trial period will be maintained. Additionally, if a "quantity" exists for the subscription, that quantity will also be maintained.
643
643
644
644
If you would like to swap plans and cancel any trial period the customer is currently on, you may invoke the `skipTrial` method:
645
645
@@ -662,7 +662,7 @@ By default, Stripe prorates charges when swapping between plans. The `noProrate`
662
662
663
663
For more information on subscription proration, consult the [Stripe documentation](https://stripe.com/docs/billing/subscriptions/prorations).
664
664
665
-
> {note} Executing the `noProrate` method before the `swapAndInvoice` method will have no affect on proration. An invoice will always be issued.
665
+
> {note} Executing the `noProrate` method before the `swapAndInvoice` method will have no effect on proration. An invoice will always be issued.
666
666
667
667
<aname="subscription-quantity"></a>
668
668
### Subscription Quantity
@@ -1129,7 +1129,7 @@ The `charge` method accepts an array as its third argument, allowing you to pass
1129
1129
'custom_option' => $value,
1130
1130
]);
1131
1131
1132
-
You may also use the `charge` method without an underlying customer or user. To accomplish this, invoke the `charge` method on an new instance of your application's billable model:
1132
+
You may also use the `charge` method without an underlying customer or user. To accomplish this, invoke the `charge` method on a new instance of your application's billable model:
Copy file name to clipboardExpand all lines: blade.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -339,7 +339,7 @@ If you are in a nested loop, you may access the parent loop's `$loop` variable v
339
339
@foreach ($users as $user)
340
340
@foreach ($user->posts as $post)
341
341
@if ($loop->parent->first)
342
-
This is first iteration of the parent loop.
342
+
This is the first iteration of the parent loop.
343
343
@endif
344
344
@endforeach
345
345
@endforeach
@@ -804,10 +804,10 @@ The following HTML will be rendered by Blade:
804
804
<aname="component-methods"></a>
805
805
#### Component Methods
806
806
807
-
In addition to public variables being available to your component template, any public methods on the component may be invoked. For example, imagine a component that has a`isSelected` method:
807
+
In addition to public variables being available to your component template, any public methods on the component may be invoked. For example, imagine a component that has an`isSelected` method:
808
808
809
809
/**
810
-
* Determine if the given option is the current selected option.
810
+
* Determine if the given option is the currently selected option.
811
811
*
812
812
* @param string $option
813
813
* @return bool
@@ -888,7 +888,7 @@ All of the attributes that are not part of the component's constructor will auto
888
888
<aname="default-merged-attributes"></a>
889
889
#### Default / Merged Attributes
890
890
891
-
Sometimes you may need to specify default values for attributes or merge additional values into some of the component's attributes. To accomplish this, you may use the attribute bag's `merge` method. This method is particularly useful for defining a set a default CSS classes that should always be applied to a component:
891
+
Sometimes you may need to specify default values for attributes or merge additional values into some of the component's attributes. To accomplish this, you may use the attribute bag's `merge` method. This method is particularly useful for defining a set of default CSS classes that should always be applied to a component:
@@ -909,7 +909,7 @@ The final, rendered HTML of the component will appear like the following:
909
909
<aname="non-class-attribute-merging"></a>
910
910
#### Non-Class Attribute Merging
911
911
912
-
When merging attributes that are not `class` attributes, the values provided to the `merge` method will be considered the "default" values of attribute. However, unlike the `class` attribute, these attributes will not be merged with injected attribute values. Instead, they will be overwritten. For example, a `button` component's implementation may look like the following:
912
+
When merging attributes that are not `class` attributes, the values provided to the `merge` method will be considered the "default" values of the attribute. However, unlike the `class` attribute, these attributes will not be merged with injected attribute values. Instead, they will be overwritten. For example, a `button` component's implementation may look like the following:
Copy file name to clipboardExpand all lines: cache.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ Thankfully, Laravel provides an expressive, unified API for various cache backen
32
32
<aname="configuration"></a>
33
33
## Configuration
34
34
35
-
Your application's cache configuration file is located at `config/cache.php`. In this file you may specify which cache driver you would like to be used by default throughout your application. Laravel supports popular caching backends like [Memcached](https://memcached.org), [Redis](https://redis.io), [DynamoDB](https://aws.amazon.com/dynamodb), and relational databases out of the box. In addition, a file based cache driver is available, while `array` and "null" cache drivers provide convenient cache backends for your automated tests.
35
+
Your application's cache configuration file is located at `config/cache.php`. In this file, you may specify which cache driver you would like to be used by default throughout your application. Laravel supports popular caching backends like [Memcached](https://memcached.org), [Redis](https://redis.io), [DynamoDB](https://aws.amazon.com/dynamodb), and relational databases out of the box. In addition, a file based cache driver is available, while `array` and "null" cache drivers provide convenient cache backends for your automated tests.
36
36
37
37
The cache configuration file also contains various other options, which are documented within the file, so make sure to read over these options. By default, Laravel is configured to use the `file` cache driver, which stores the serialized, cached objects on the server's filesystem. For larger applications, it is recommended that you use a more robust driver such as Memcached or Redis. You may even configure multiple cache configurations for the same driver.
38
38
@@ -334,7 +334,7 @@ If the lock is not available at the moment you request it, you may instruct Lara
334
334
try {
335
335
$lock->block(5);
336
336
337
-
// Lock acquired after waiting maximum of 5 seconds...
337
+
// Lock acquired after waiting a maximum of 5 seconds...
338
338
} catch (LockTimeoutException $e) {
339
339
// Unable to acquire lock...
340
340
} finally {
@@ -344,7 +344,7 @@ If the lock is not available at the moment you request it, you may instruct Lara
344
344
The example above may be simplified by passing a closure to the `block` method. When a closure is passed to this method, Laravel will attempt to acquire the lock for the specified number of seconds and will automatically release the lock once the closure has been executed:
345
345
346
346
Cache::lock('foo', 10)->block(5, function () {
347
-
// Lock acquired after waiting maximum of 5 seconds...
347
+
// Lock acquired after waiting a maximum of 5 seconds...
If the user is on a trial, the trial period will be maintained. Also, if a "quantity" exists for the subscription, that quantity will also be maintained.
652
+
If the user is on a trial, the trial period will be maintained. Additionally, if a "quantity" exists for the subscription, that quantity will also be maintained.
653
653
654
654
If you would like to swap plans and cancel any trial period the user is currently on, you may use the `skipTrial` method:
Copy file name to clipboardExpand all lines: database-testing.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -412,7 +412,7 @@ You may provide a closure based state transformation if your state change requir
412
412
)
413
413
->create();
414
414
415
-
If you already have model instances that you would like to attached to the models you are creating, you may pass the model instances to the `hasAttached` method. In this example, the same three roles will be attached to all three users:
415
+
If you already have model instances that you would like to be attached to the models you are creating, you may pass the model instances to the `hasAttached` method. In this example, the same three roles will be attached to all three users:
Copy file name to clipboardExpand all lines: database.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Almost every modern web application interacts with a database. Laravel makes int
24
24
<aname="configuration"></a>
25
25
### Configuration
26
26
27
-
The configuration for Laravel's database services is located in your application's `config/database.php` configuration file. In this file you may define all of your database connections, as well as specify which connection should be used by default. Most of the configuration options within this file are driven by the values of your application's environment variables. Examples for most of Laravel's supported database systems are provided in this file.
27
+
The configuration for Laravel's database services is located in your application's `config/database.php` configuration file. In this file, you may define all of your database connections, as well as specify which connection should be used by default. Most of the configuration options within this file are driven by the values of your application's environment variables. Examples for most of Laravel's supported database systems are provided in this file.
28
28
29
29
By default, Laravel's sample [environment configuration](/docs/{{version}}/configuration#environment-configuration) is ready to use with [Laravel Sail](/docs/{{version}}/sail), which is a Docker configuration for developing Laravel applications on your local machine. However, you are free to modify your database configuration as needed for your local database.
Copy file name to clipboardExpand all lines: dusk.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -552,7 +552,7 @@ The `press` method may be used to click a button element on the page. The first
552
552
553
553
$browser->press('Login');
554
554
555
-
When submitting forms, many application's disable the form's submission button after it are 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:
555
+
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:
556
556
557
557
// Press the button and wait a maximum of 5 seconds for it to be enabled...
558
558
$browser->pressAndWaitFor('Save');
@@ -1509,7 +1509,7 @@ Sometimes you may already be on a given page and need to "load" the page's selec
1509
1509
<aname="shorthand-selectors"></a>
1510
1510
### Shorthand Selectors
1511
1511
1512
-
The `elements` method within page classes allow you to define quick, easy-to-remember shortcuts for any CSS selector on your page. For example, let's define a shortcut for the "email" input field of the application's login page:
1512
+
The `elements` method within page classes allows you to define quick, easy-to-remember shortcuts for any CSS selector on your page. For example, let's define a shortcut for the "email" input field of the application's login page:
Copy file name to clipboardExpand all lines: eloquent-mutators.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@
18
18
<aname="introduction"></a>
19
19
## Introduction
20
20
21
-
Accessors, mutators, and attribute casting allows you to transform Eloquent attribute values when you retrieve or set them on model instances. For example, you may want to use the [Laravel encrypter](/docs/{{version}}/encryption) to encrypt a value while it is stored in the database, and then automatically decrypt the attribute when you access it on an Eloquent model. Or, you may want to convert a JSON string that is stored in your database to an array when it is accessed via your Eloquent model.
21
+
Accessors, mutators, and attribute casting allow you to transform Eloquent attribute values when you retrieve or set them on model instances. For example, you may want to use the [Laravel encrypter](/docs/{{version}}/encryption) to encrypt a value while it is stored in the database, and then automatically decrypt the attribute when you access it on an Eloquent model. Or, you may want to convert a JSON string that is stored in your database to an array when it is accessed via your Eloquent model.
Copy file name to clipboardExpand all lines: eloquent-relationships.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -996,7 +996,7 @@ As demonstrated in the example above, you are free to add additional constraints
996
996
->orWhere('votes', '>=', 100)
997
997
->get();
998
998
999
-
The example above will generate the following SQL. As you can see, the `or` clause instructs the query to return _any_use with greater than 100 votes. The query is no longer constrained to a specific user:
999
+
The example above will generate the following SQL. As you can see, the `or` clause instructs the query to return _any_user with greater than 100 votes. The query is no longer constrained to a specific user:
Copy file name to clipboardExpand all lines: eloquent.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -327,7 +327,7 @@ Since all of Laravel's collections implement PHP's iterable interfaces, you may
327
327
328
328
Your application may run out of memory if you attempt to load tens of thousands of Eloquent records via the `all` or `get` methods. Instead of using these methods, the `chunk` method may be used to process large numbers of models more efficiently.
329
329
330
-
The `chunk` method will retrieve a subset of Eloquent models, passing them to a closure for processing. Since only the current chunk of Eloquent models is retrieved at a time, the `chunk` method will provide significantly reduced memory usage when working with a large amount of models:
330
+
The `chunk` method will retrieve a subset of Eloquent models, passing them to a closure for processing. Since only the current chunk of Eloquent models is retrieved at a time, the `chunk` method will provide significantly reduced memory usage when working with a large number of models:
331
331
332
332
use App\Models\Flight;
333
333
@@ -1108,7 +1108,7 @@ To start listening to model events, define a `$dispatchesEvents` property on you
1108
1108
1109
1109
After defining and mapping your Eloquent events, you may use [event listeners](https://laravel.com/docs/{{version}}/events#defining-listeners) to handle the events.
1110
1110
1111
-
> {note} When issuing a mass update or delete query via Eloquent, the `saved`, `updated`, `deleting`, and `deleted` model events will not be dispatched for the affected models. This is because the models are never actually retrieved when performing a mass updates or deletes.
1111
+
> {note} When issuing a mass update or delete query via Eloquent, the `saved`, `updated`, `deleting`, and `deleted` model events will not be dispatched for the affected models. This is because the models are never actually retrieved when performing mass updates or deletes.
Copy file name to clipboardExpand all lines: events.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -339,7 +339,7 @@ If you would like to define the listener's queue at runtime, you may define a `v
339
339
<aname="conditionally-queueing-listeners"></a>
340
340
#### Conditionally Queueing Listeners
341
341
342
-
Sometimes, you may need to determine whether a listener should be queued based on some data that's only available at runtime. To accomplish this, a `shouldQueue` method may be added to a listener to determine whether the listener should be queued. If the `shouldQueue` method returns `false`, the listener will not be executed:
342
+
Sometimes, you may need to determine whether a listener should be queued based on some data that are only available at runtime. To accomplish this, a `shouldQueue` method may be added to a listener to determine whether the listener should be queued. If the `shouldQueue` method returns `false`, the listener will not be executed:
343
343
344
344
<?php
345
345
@@ -471,7 +471,7 @@ Sometimes your queued event listeners may fail. If queued listener exceeds the m
If one of your queued listener is encountering an error, you likely do not want it to keep retrying indefinitely. Therefore, Laravel provides various ways to specify how many times or for how long a listener may be attempted.
474
+
If one of your queued listeners is encountering an error, you likely do not want it to keep retrying indefinitely. Therefore, Laravel provides various ways to specify how many times or for how long a listener may be attempted.
475
475
476
476
You may define `$tries` property on your listener class to specify how many times the listener may be attempted before it is considered to have failed:
Copy file name to clipboardExpand all lines: facades.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,7 @@ The `Facade` base class makes use of the `__callStatic()` magic-method to defer
151
151
}
152
152
}
153
153
154
-
Notice that near the top of the file we are "importing" the `Cache` facade. This facade serves as a proxy to accessing the underlying implementation of the `Illuminate\Contracts\Cache\Factory` interface. Any calls we make using the facade will be passed to the underlying instance of Laravel's cache service.
154
+
Notice that near the top of the file we are "importing" the `Cache` facade. This facade serves as a proxy for accessing the underlying implementation of the `Illuminate\Contracts\Cache\Factory` interface. Any calls we make using the facade will be passed to the underlying instance of Laravel's cache service.
155
155
156
156
If we look at that `Illuminate\Support\Facades\Cache` class, you'll see that there is no static method `get`:
0 commit comments