Skip to content

Commit

Permalink
Merge pull request #17 from mshukurlu/fix_wrong_major_version_link
Browse files Browse the repository at this point in the history
Documentation link should follow the latest major version
  • Loading branch information
freekmurze authored Dec 9, 2024
2 parents 8341141 + aafab78 commit 30f2240
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@
use Spatie\ErrorSolutions\Contracts\HasSolutionsForThrowable;
use Spatie\ErrorSolutions\Contracts\Solution;
use Throwable;
use Spatie\ErrorSolutions\Support\Laravel\LaravelVersion;

class MissingViteManifestSolutionProvider implements HasSolutionsForThrowable
{
/** @var array<string, string> */
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
{
Expand Down

0 comments on commit 30f2240

Please sign in to comment.