/* Decoded by unphp.net */ , September 2018 */ namespace App\Http\Controllers\Installer\Helpers; use Exception; use Illuminate\Support\Facades\Artisan; use Symfony\Component\Console\Output\BufferedOutput; class FinalInstallManager { public function runFinal() { $outputLog = new BufferedOutput(); $this->generateKey($outputLog); $this->publishVendorAssets($outputLog); return $outputLog->fetch(); } private static function generateKey($outputLog) { try { if (!config("installer.final.key")) { goto KB156; } Artisan::call("key:generate", ["--force" => true], $outputLog); KB156: } catch (Exception $e) { return static::response($e->getMessage(), $outputLog); } return $outputLog; } private static function publishVendorAssets($outputLog) { try { if (!config("installer.final.publish")) { goto jIAPz; } Artisan::call("vendor:publish", ["--all" => true], $outputLog); jIAPz: } catch (Exception $e) { return static::response($e->getMessage(), $outputLog); } return $outputLog; } private static function response($message, $outputLog) { return ["status" => "error", "message" => $message, "dbOutputLog" => $outputLog->fetch()]; } } ?>