File manager - Edit - /home/linknsbh/cecil-hotel.net/platform/packages/installer/src/Services/ImportDatabaseService.php
Back
<?php namespace Botble\Installer\Services; use Botble\Base\Supports\Database; use Illuminate\Database\QueryException; use Illuminate\Support\Facades\File; use Illuminate\Validation\ValidationException; class ImportDatabaseService { public function handle(string $path): void { try { Database::restoreFromPath($path); File::delete(app()->bootstrapPath('cache/plugins.php')); } catch (QueryException $exception) { throw ValidationException::withMessages([ 'database' => [$exception->getMessage()], ]); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.42 |
proxy
|
phpinfo
|
Settings