File manager - Edit - /home/linknsbh/cecil-hotel.net/platform/packages/installer/src/Http/Controllers/FinalController.php
Back
<?php namespace Botble\Installer\Http\Controllers; use Botble\Base\Facades\BaseHelper; use Botble\Installer\Events\InstallerFinished; use Botble\Installer\Services\CleanupSystemAfterInstalledService; use Carbon\Carbon; use Illuminate\Contracts\View\View; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\URL; class FinalController { public function index( Request $request, CleanupSystemAfterInstalledService $cleanupSystemAfterInstalledService ): View|RedirectResponse { if (! URL::hasValidSignature($request)) { return redirect()->route('installers.requirements.index'); } File::delete(storage_path('installing')); BaseHelper::saveFileData(storage_path('installed'), Carbon::now()->toDateTimeString()); $cleanupSystemAfterInstalledService->handle(); event(new InstallerFinished()); return view('packages/installer::final'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.22 |
proxy
|
phpinfo
|
Settings