File: D:/HostingSpaces/bomacon/bomacon.nl/app/Exceptions/SolutionProviders/SiteSolutionsProvider.php
<?php
declare(strict_types=1);
namespace App\Exceptions\SolutionProviders;
use App\Exceptions\Solutions\AppLanguageUnavailableInCurrentSite;
use Facade\IgnitionContracts\HasSolutionsForThrowable;
use Illuminate\Support\Str;
use Throwable;
class SiteSolutionsProvider implements HasSolutionsForThrowable
{
public function canSolve(Throwable $throwable): bool
{
return Str::contains($throwable->getMessage(), 'SiteResolver: Defined app language with iso_2');
}
/** \Facade\IgnitionContracts\Solution[] */
public function getSolutions(Throwable $throwable): array
{
return [
new AppLanguageUnavailableInCurrentSite(),
];
}
}