Файл: vendor/spatie/laravel-ignition/src/Solutions/SolutionProviders/MissingAppKeySolutionProvider.php
Строк: 41
<?php
namespace SpatieLaravelIgnitionSolutionsSolutionProviders;
use RuntimeException;
use SpatieIgnitionContractsHasSolutionsForThrowable;
use SpatieLaravelIgnitionSolutionsGenerateAppKeySolution;
use Throwable;
class MissingAppKeySolutionProvider implements HasSolutionsForThrowable
{
public function canSolve(Throwable $throwable): bool
{
if (! $throwable instanceof RuntimeException) {
return false;
}
return $throwable->getMessage() === 'No application encryption key has been specified.';
}
public function getSolutions(Throwable $throwable): array
{
return [new GenerateAppKeySolution()];
}
}