HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/gggg.komma.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()
        ];
    }
}