How to run Symfony Process function inside queue jobs on laravel

  laravel, php, symfony

Now i’m doing some project use laravel framework. do i able to run Symfony Process function inside a queue jobs?

use SymfonyComponentProcessProcess;
use SymfonyComponentProcessExceptionProcessFailedException;

right now i want to run some commend using Symfony Process function for this

process = new Process("facebook-scraper --filename public/data/nintendo.csv --pages 5 nintendo");

if outside the queue. this code can run succesful. but when i want to make it run inside the queue jobs. it can’t.

how do i able to run symfony Process function inside queue on jobs laravel.

please help

Source: Ask PHP