We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 881b28d commit 79fbf4aCopy full SHA for 79fbf4a
src/Illuminate/Concurrency/ProcessDriver.php
@@ -59,20 +59,7 @@ public function run(Closure|array $tasks): array
59
*/
60
public function defer(Closure|array $tasks): DeferredCallback
61
{
62
- $php = $this->phpBinary();
63
- $artisan = $this->artisanBinary();
64
-
65
- return defer(function () use ($tasks, $php, $artisan) {
66
- foreach (Arr::wrap($tasks) as $task) {
67
- $this->processFactory->path(base_path())->env([
68
- 'LARAVEL_INVOKABLE_CLOSURE' => serialize(new SerializableClosure($task)),
69
- ])->run([
70
- $php,
71
- $artisan,
72
- 'invoke-serialized-closure 2>&1 &',
73
- ]);
74
- }
75
- });
+ return defer(fn () => $this->run($tasks));
76
}
77
78
/**
0 commit comments