File manager - Edit - /var/www/payraty/inventory_main/vendor/facade/ignition/src/SolutionProviders/DefaultDbNameSolutionProvider.php
Back
<?php namespace Facade\Ignition\SolutionProviders; use Facade\Ignition\Solutions\SuggestUsingCorrectDbNameSolution; use Facade\IgnitionContracts\HasSolutionsForThrowable; use Illuminate\Database\QueryException; use Throwable; class DefaultDbNameSolutionProvider implements HasSolutionsForThrowable { public const MYSQL_UNKNOWN_DATABASE_CODE = 1049; public function canSolve(Throwable $throwable): bool { if (! $throwable instanceof QueryException) { return false; } if ($throwable->getCode() !== self::MYSQL_UNKNOWN_DATABASE_CODE) { return false; } if (! in_array(env('DB_DATABASE'), ['homestead', 'laravel'])) { return false; } return true; } public function getSolutions(Throwable $throwable): array { return [new SuggestUsingCorrectDbNameSolution()]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings