validate([ 'command' => ['sometimes', 'string'] ]); $result = Process::path(base_path())->run( $request->filled('command') ? $request->filled('command') : 'git pull' ); return '
'.$result->output().'