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: original-en/artisan.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -370,7 +370,7 @@ You may assign default values to options by specifying the default value after t
370
370
To assign a shortcut when defining an option, you may specify it before the option name and use the `|` character as a delimiter to separate the shortcut from the full option name:
371
371
372
372
```php
373
-
'mail:send {user} {--Q|queue}'
373
+
'mail:send {user} {--Q|queue=}'
374
374
```
375
375
376
376
When invoking the command on your terminal, option shortcuts should be prefixed with a single hyphen and no `=` character should be included when specifying a value for the option:
Copy file name to clipboardExpand all lines: original-en/billing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@
82
82
When upgrading to a new version of Cashier, it's important that you carefully review [the upgrade guide](https://github.com/laravel/cashier-stripe/blob/master/UPGRADE.md).
83
83
84
84
> [!WARNING]
85
-
> To prevent breaking changes, Cashier uses a fixed Stripe API version. Cashier 16 utilizes Stripe API version `2025-07-30.basil`. The Stripe API version will be updated on minor releases in order to make use of new Stripe features and improvements.
85
+
> To prevent breaking changes, Cashier uses a fixed Stripe API version. Cashier 16 utilizes Stripe API version `2025-06-30.basil`. The Stripe API version will be updated on minor releases in order to make use of new Stripe features and improvements.
The `setAppends` method temporarily overrides all of the [appended attributes](/docs/{{version}}/eloquent-serialization#appending-values-to-json) on each model in the collection:
The `withoutAppends` method temporarily removes all of the [appended attributes](/docs/{{version}}/eloquent-serialization#appending-values-to-json) on each model in the collection:
When invoking the `toResource` method, Laravel will attempt to locate a resource that matches the model's name and is optionally suffixed with `Resource` within the `Http\Resources` namespace closest to the model's namespace.
100
100
101
+
If your resource class doesn't follow this naming convention or is located in a different namespace, you may specify the default resource for the model using the `UseResource` attribute:
102
+
103
+
```php
104
+
<?php
105
+
106
+
namespace App\Models;
107
+
108
+
use App\Http\Resources\CustomUserResource;
109
+
use Illuminate\Database\Eloquent\Model;
110
+
use Illuminate\Database\Eloquent\Attributes\UseResource;
111
+
112
+
#[UseResource(CustomUserResource::class)]
113
+
class User extends Model
114
+
{
115
+
// ...
116
+
}
117
+
```
118
+
119
+
Alternatively, you may specify resource class by passing it to the `toResource` method:
When invoking the `toResourceCollection` method, Laravel will attempt to locate a resource collection that matches the model's name and is suffixed with `Collection` within the `Http\Resources` namespace closest to the model's namespace.
122
146
147
+
If your resource collection class doesn't follow this naming convention or is located in a different namespace, you may specify the default resource collection for the model using the `UseResourceCollection` attribute:
148
+
149
+
```php
150
+
<?php
151
+
152
+
namespace App\Models;
153
+
154
+
use App\Http\Resources\CustomUserCollection;
155
+
use Illuminate\Database\Eloquent\Model;
156
+
use Illuminate\Database\Eloquent\Attributes\UseResourceCollection;
The maximum concurrency of the request pool may be controlled by providing the `concurrency` argument to the `pool` method. This value determines the maximum number of HTTP requests that may be concurrently in-flight while processing the request pool:
After a `batch` is started by calling the `send` method, you can't add new requests to it. Trying to do so will result in a `Illuminate\Http\Client\BatchInProgressException` exception being thrown.
600
608
609
+
The maximum concurrency of the request batch may be controlled via the `concurrency` method. This value determines the maximum number of HTTP requests that may be concurrently in-flight while processing the request batch:
The `deferred` connection also serves as the default [failover queue](#queue-failover).
981
981
982
+
Similarly, the `background` connection processes jobs after the HTTP response has been sent to the user; however, the job is processed in a separately spawned PHP process, allowing the PHP-FPM / application worker to be available to handle another incoming HTTP request:
> You do not need to run a worker for connections using the `sync` or `deferred` queue drivers since those drivers process jobs within the current PHP process.
1560
+
> You do not need to run a worker for connections using the `sync`, `background`, or `deferred` queue drivers since those drivers process jobs within the current PHP process.
1555
1561
1556
1562
When a queue connection operation fails and failover is activated, Laravel will dispatch the `Illuminate\Queue\Events\QueueFailedOver` event, allowing you to report or log that a queue connection has failed.
0 commit comments