wip
This commit is contained in:
1 parent
66af4f913a
commit
c2298d1550
1 file changed
+2
-7
@@ -15,19 +15,14 @@ public function index(Request $request)
|
||||
]);
|
||||
|
||||
$result = Process::pipe(function (Pipe $pipe) {
|
||||
$pipe->command('ls -la');
|
||||
$pipe->command('ls -la '. base_path());
|
||||
// $pipe->command('grep -i "laravel"');
|
||||
}, function (string $type, string $output) {
|
||||
echo $output;
|
||||
});
|
||||
|
||||
return [
|
||||
'successful' => $result->successful(),
|
||||
'failed' => $result->failed(),
|
||||
'exitCode' => $result->exitCode(),
|
||||
'output' => $result->output(),
|
||||
'errorOutput' => $result->errorOutput(),
|
||||
'output' => '<pre>'.$result->output().'</pre>',
|
||||
];
|
||||
// return '<pre>'.$result->output().'</pre>';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user