laravel-async-queue icon indicating copy to clipboard operation
laravel-async-queue copied to clipboard

Issues with Process class and fromShellCommandline method in Laravel 8

Open joalvm opened this issue 2 years ago • 0 comments

Hi there,

I've been using the laravel-async-queue library in my Laravel 8 project, and I've encountered an issue with the Process class. Specifically, the startProcess method of Barryvdh\Queue\AsyncQueue appears to be using the new Process([$command], $cwd) syntax, which doesn't seem to work as intended. The process never executes when called this way.

However, I found that when I changed the code to use the fromShellCommandline method, the process executes successfully in the background. Here's the working code:

$process = Process::fromShellCommandline($command, $cwd, $_ENV);

joalvm avatar Mar 17 '23 02:03 joalvm