Файловый менеджер - Редактировать - /var/www/jonas-eriksen.dk/jresolutions.dk/test/vendor/facade/ignition/src/SolutionProviders/DefaultDbNameSolutionProvider.php
Назад
<?php namespace Facade\Ignition\SolutionProviders; use Facade\Ignition\Solutions\SuggestUsingCorrectDbNameSolution; use Facade\IgnitionContracts\HasSolutionsForThrowable; use Illuminate\Support\Facades\DB; use Throwable; class DefaultDbNameSolutionProvider implements HasSolutionsForThrowable { public function canSolve(Throwable $throwable): bool { if ($this->canTryDatabaseConnection()) { try { DB::connection()->select('SELECT 1'); } catch (\Exception $e) { return in_array(env('DB_DATABASE'), ['homestead', 'laravel']); } } return false; } public function getSolutions(Throwable $throwable): array { return [new SuggestUsingCorrectDbNameSolution()]; } protected function canTryDatabaseConnection() { return version_compare(app()->version(), '5.6.28', '>'); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка