diff --git a/src/SolutionProviders/Laravel/MissingViteManifestSolutionProvider.php b/src/SolutionProviders/Laravel/MissingViteManifestSolutionProvider.php index 4d9ddef..7be0708 100644 --- a/src/SolutionProviders/Laravel/MissingViteManifestSolutionProvider.php +++ b/src/SolutionProviders/Laravel/MissingViteManifestSolutionProvider.php @@ -7,13 +7,17 @@ use Spatie\ErrorSolutions\Contracts\HasSolutionsForThrowable; use Spatie\ErrorSolutions\Contracts\Solution; use Throwable; +use Spatie\ErrorSolutions\Support\Laravel\LaravelVersion; class MissingViteManifestSolutionProvider implements HasSolutionsForThrowable { /** @var array */ - protected array $links = [ - 'Asset bundling with Vite' => 'https://laravel.com/docs/9.x/vite#running-vite', - ]; + protected array $links = []; + + public function __construct() + { + $this->links = ['Asset bundling with Vite' => 'https://laravel.com/docs/'.LaravelVersion::major().'.x/vite#running-vite']; + } public function canSolve(Throwable $throwable): bool {