2

I wanted to know how to import symfony process class in laravel 5 . I have used it in a console in laravel and it showed an error

Class 'Process' not found .

Kaviranga
  • 576
  • 2
  • 10
  • 24

1 Answers1

10

use Symfony\Component\Process\Process;

with that you can use the Process class

$process = new Process($your_command);

// $process->run(); // to run Sync
// $process->start(); // to run Async
Edwin
  • 836
  • 7
  • 17