Answers for "laravel run shell command"

PHP
0

execute shell script file in laravel command

use SymfonyComponentProcessProcess;
use SymfonyComponentProcessExceptionProcessFailedException;

$process = new Process('sh /folder_name/file_name.sh');
$process->run();

// executes after the command finishes
if (!$process->isSuccessful()) {
    throw new ProcessFailedException($process);
}

echo $process->getOutput();
Posted by: Guest on September-25-2021
0

laravel execute command from terminal

php artisan command:name
Posted by: Guest on July-29-2021

Code answers related to "laravel run shell command"

Browse Popular Code Answers by Language