Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ Cache::lock('processing')->forceRelease();
<a name="cache-failover"></a>
## Cache Failover

The `failover` cache driver provides automatic failover functionality when interacting with the cache. If the primary cache store fails for any reason, Laravel will automatically attempt to use the next configured store in the list. This is particularly useful for ensuring high availability in production environments where cache reliability is critical.
The `failover` cache driver provides automatic failover functionality when interacting with the cache. If the primary cache store of the `failover` store fails for any reason, Laravel will automatically attempt to use the next configured store in the list. This is particularly useful for ensuring high availability in production environments where cache reliability is critical.

To configure a failover cache store, specify the `failover` driver and provide an array of store names to attempt in order. By default, Laravel includes an example failover configuration in your application's `config/cache.php` configuration file:

Expand All @@ -547,7 +547,7 @@ To configure a failover cache store, specify the `failover` driver and provide a
],
```

Once you have configured a store that uses the `failover` driver, you will probably want to set the failover store as your default cache store in your application's `.env` file:
Once you have configured a store that uses the `failover` driver, you will need to set the failover store as your default cache store in your application's `.env` file to make use of the failover functionality:

```ini
CACHE_STORE=failover
Expand Down
6 changes: 3 additions & 3 deletions mail.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ To accomplish this, you should define a mailer within your application's `mail`
],
```

Once your failover mailer has been defined, you should set this mailer as the default mailer used by your application by specifying its name as the value of the `default` configuration key within your application's `mail` configuration file:
Once you have configured a mailer that uses the `failover` transport, you will need to set the failover mailer as your default mailer in your application's `.env` file to make use of the failover functionality:

```php
'default' => env('MAIL_MAILER', 'failover'),
```ini
MAIL_MAILER=failover
```

<a name="round-robin-configuration"></a>
Expand Down
4 changes: 2 additions & 2 deletions queues.md
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,7 @@ $user->notify($invoicePaid);
<a name="queue-failover"></a>
### Queue Failover

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.
The `failover` queue driver provides automatic failover functionality when pushing jobs to the queue. If the primary queue connection of the `failover` configuration 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.

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:

Expand All @@ -1544,7 +1544,7 @@ To configure a failover queue connection, specify the `failover` driver and prov
],
```

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:
Once you have configured a connection that uses the `failover` driver, you will need to set the failover connection as your default queue connection in your application's `.env` file to make use of the failover functionality:

```ini
QUEUE_CONNECTION=failover
Expand Down