added update command
This commit is contained in:
21
app/Utilities/Console.php
Normal file
21
app/Utilities/Console.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Utilities;
|
||||
|
||||
use Symfony\Component\Process\Process;
|
||||
|
||||
class Console
|
||||
{
|
||||
public static function run($command)
|
||||
{
|
||||
$process = new Process($command, base_path());
|
||||
|
||||
$process->run();
|
||||
|
||||
if ($process->isSuccessful()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user