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/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
@@ -612,7 +612,7 @@ public function stripeName(): string|null
612
612
}
613
613
```
614
614
615
-
Similarly, you may override the `stripeEmail`, `stripePhone`, `stripeAddress`, and `stripePreferredLocales` methods. These methods will sync information to their corresponding customer parameters when [updating the Stripe customer object](https://stripe.com/docs/api/customers/update). If you wish to take total control over the customer information sync process, you may override the `syncStripeCustomerDetails` method.
615
+
Similarly, you may override the `stripeEmail`, `stripePhone` (20 character maximum), `stripeAddress`, and `stripePreferredLocales` methods. These methods will sync information to their corresponding customer parameters when [updating the Stripe customer object](https://stripe.com/docs/api/customers/update). If you wish to take total control over the customer information sync process, you may override the `syncStripeCustomerDetails` method.
Copy file name to clipboardExpand all lines: original-en/blade.md
+23-8Lines changed: 23 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -640,6 +640,20 @@ Since the `@once` directive is often used in conjunction with the `@push` or `@p
640
640
@endPushOnce
641
641
```
642
642
643
+
If you are pushing duplicate content from two separate Blade templates, you should provide a unique identifier as the second argument to the `@pushOnce` directive to ensure the content is only rendered once:
The command above will create an `Input` component in the `app/View/Components/Forms` directory and the view will be placed in the `resources/views/components/forms` directory.
722
736
723
-
If you would like to create an anonymous component (a component with only a Blade template and no class), you may use the `--view` flag when invoking the `make:component` command:
724
-
725
-
```shell
726
-
php artisan make:component forms.input --view
727
-
```
728
-
729
-
The command above will create a Blade file at `resources/views/components/forms/input.blade.php` which can be rendered as a component via `<x-forms.input />`.
@@ -1215,6 +1221,7 @@ By default, some keywords are reserved for Blade's internal use in order to rend
1215
1221
1216
1222
-`data`
1217
1223
-`render`
1224
+
-`resolve`
1218
1225
-`resolveView`
1219
1226
-`shouldRender`
1220
1227
-`view`
@@ -1453,6 +1460,14 @@ You may use the `.` character to indicate if a component is nested deeper inside
1453
1460
<x-inputs.button/>
1454
1461
```
1455
1462
1463
+
To create an anonymous component via Artisan, you may use the `--view` flag when invoking the `make:component` command:
1464
+
1465
+
```shell
1466
+
php artisan make:component forms.input --view
1467
+
```
1468
+
1469
+
The command above will create a Blade file at `resources/views/components/forms/input.blade.php` which can be rendered as a component via `<x-forms.input />`.
When the `defer` method is invoked, the batch of requests is not executed immediately. Instead, Laravel will execute the batch after the current application request's HTTP response has been sent to the user, keeping your application feeling fast and responsive:
Copy file name to clipboardExpand all lines: original-en/mail.md
+1-30Lines changed: 1 addition & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ Within your `mail` configuration file, you will find a `mailers` configuration a
48
48
<aname="driver-prerequisites"></a>
49
49
### Driver / Transport Prerequisites
50
50
51
-
The API based drivers such as Mailgun, Postmark, Resend, and MailerSend are often simpler and faster than sending mail via SMTP servers. Whenever possible, we recommend that you use one of these drivers.
51
+
The API based drivers such as Mailgun, Postmark, and Resend are often simpler and faster than sending mail via SMTP servers. Whenever possible, we recommend that you use one of these drivers.
52
52
53
53
<aname="mailgun-driver"></a>
54
54
#### Mailgun Driver
@@ -208,35 +208,6 @@ If you would like to define [additional options](https://docs.aws.amazon.com/aws
208
208
],
209
209
```
210
210
211
-
<aname="mailersend-driver"></a>
212
-
#### MailerSend Driver
213
-
214
-
[MailerSend](https://www.mailersend.com/), a transactional email and SMS service, maintains their own API based mail driver for Laravel. The package containing the driver may be installed via the Composer package manager:
215
-
216
-
```shell
217
-
composer require mailersend/laravel-driver
218
-
```
219
-
220
-
Once the package is installed, add the `MAILERSEND_API_KEY` environment variable to your application's `.env` file. In addition, the `MAIL_MAILER` environment variable should be defined as `mailersend`:
221
-
222
-
```ini
223
-
MAIL_MAILER=mailersend
224
-
MAIL_FROM_ADDRESS=app@yourdomain.com
225
-
MAIL_FROM_NAME="App Name"
226
-
227
-
MAILERSEND_API_KEY=your-api-key
228
-
```
229
-
230
-
Finally, add MailerSend to the `mailers` array in your application's `config/mail.php` configuration file:
231
-
232
-
```php
233
-
'mailersend' => [
234
-
'transport' => 'mailersend',
235
-
],
236
-
```
237
-
238
-
To learn more about MailerSend, including how to use hosted templates, consult the [MailerSend driver documentation](https://github.com/mailersend/mailersend-laravel-driver#usage).
@@ -1531,6 +1532,31 @@ $invoicePaid = (new InvoicePaid($invoice))
1531
1532
$user->notify($invoicePaid);
1532
1533
```
1533
1534
1535
+
<aname="queue-failover"></a>
1536
+
### Queue Failover
1537
+
1538
+
The `failover` queue driver provides automatic failover functionality when pushing jobs to the queue. If the primary queue connection fails for any reason, Laravel will automatically attempt to push the job to the next configured connection in the list. This is particularly useful for ensuring high availability in production environments where queue reliability is critical.
1539
+
1540
+
To configure a failover queue connection, specify the `failover` driver and provide an array of connection names to attempt in order. By default, Laravel includes an example failover configuration in your application's `config/queue.php` configuration file:
1541
+
1542
+
```php
1543
+
'failover' => [
1544
+
'driver' => 'failover',
1545
+
'connections' => [
1546
+
'database',
1547
+
'sync',
1548
+
],
1549
+
],
1550
+
```
1551
+
1552
+
Once you have configured a connection that uses the `failover` driver, you will probably want to set the failover connection as your default queue connection in your application's `.env` file:
1553
+
1554
+
```ini
1555
+
QUEUE_CONNECTION=failover
1556
+
```
1557
+
1558
+
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.
Copy file name to clipboardExpand all lines: original-en/scout.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ class Post extends Model
71
71
<aname="queueing"></a>
72
72
### Queueing
73
73
74
-
While not strictly required to use Scout, you should strongly consider configuring a [queue driver](/docs/{{version}}/queues) before using the library. Running a queue worker will allow Scout to queue all operations that sync your model information to your search indexes, providing much better response times for your application's web interface.
74
+
When using an engine that is not the `database` or `collection` engine, you should strongly consider configuring a [queue driver](/docs/{{version}}/queues) before using the library. Running a queue worker will allow Scout to queue all operations that sync your model information to your search indexes, providing much better response times for your application's web interface.
75
75
76
76
Once you have configured a queue driver, set the value of the `queue` option in your `config/scout.php` configuration file to `true`:
@@ -464,7 +464,7 @@ Enabling this feature will also pass the request's IP address and your authentic
464
464
> [!WARNING]
465
465
> The database engine currently supports MySQL and PostgreSQL.
466
466
467
-
If your application interacts with small to medium sized databases or has a light workload, you may find it more convenient to get started with Scout's "database" engine. The database engine will use "where like" clauses and full text indexes when filtering results from your existing database to determine the applicable search results for your query.
467
+
The `database` engine is the fastest way to get started with Laravel Scout, and uses MySQL / PostgreSQL full-text indexes and "where like" clauses when filtering results from your existing database to determine the applicable search results for your query.
468
468
469
469
To use the database engine, you may simply set the value of the `SCOUT_DRIVER` environment variable to `database`, or specify the `database` driver directly in your application's `scout` configuration file:
470
470
@@ -522,7 +522,7 @@ Once you have specified the collection driver as your preferred driver, you may
522
522
523
523
On first glance, the "database" and "collections" engines are fairly similar. They both interact directly with your database to retrieve search results. However, the collection engine does not utilize full text indexes or `LIKE` clauses to find matching records. Instead, it pulls all possible records and uses Laravel's `Str::is` helper to determine if the search string exists within the model attribute values.
524
524
525
-
The collection engine is the most portable search engine as it works across all relational databases supported by Laravel (including SQLite and SQL Server); however, it is less efficient than Scout's database engine.
525
+
The collection engine is the most portable search engine as it works across all relational databases supported by Laravel (including SQLite and SQL Server); however, it is much less efficient than Scout's database engine.
0 commit comments