Skip to content

Commit aac0a3f

Browse files
hasancanbogaHasancan Bogataylorotwell
authored
Add hint about ConcurrencyServiceProvider for old Laravel structure (laravel#9897)
* Add hint about ConcurrencyServiceProvider for older Laravel versions * wip --------- Co-authored-by: Hasancan Boga <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
1 parent 45c8abc commit aac0a3f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

concurrency.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,29 @@
1212
1313
Sometimes you may need to execute several slow tasks which do not depend on one another. In many cases, significant performance improvements can be realized by executing the tasks concurrently. Laravel's `Concurrency` facade provides a simple, convenient API for executing closures concurrently.
1414

15+
<a name="concurrency-compatibility"></a>
16+
#### Concurrency Compatibility
17+
18+
If you upgraded to Laravel 11.x from a Laravel 10.x application, you may need to add the `ConcurrencyServiceProvider` to the `providers` array in your application's `config/app.php` configuration file:
19+
20+
```php
21+
'providers' => ServiceProvider::defaultProviders()->merge([
22+
/*
23+
* Package Service Providers...
24+
*/
25+
Illuminate\Concurrency\ConcurrencyServiceProvider::class, // [tl! add]
26+
27+
/*
28+
* Application Service Providers...
29+
*/
30+
App\Providers\AppServiceProvider::class,
31+
App\Providers\AuthServiceProvider::class,
32+
// App\Providers\BroadcastServiceProvider::class,
33+
App\Providers\EventServiceProvider::class,
34+
App\Providers\RouteServiceProvider::class,
35+
])->toArray(),
36+
```
37+
1538
<a name="how-it-works"></a>
1639
#### How it Works
1740

0 commit comments

Comments
 (0)