Primo Committ
This commit is contained in:
24
vendor/facade/ignition/src/SolutionProviders/MissingMixManifestSolutionProvider.php
vendored
Normal file
24
vendor/facade/ignition/src/SolutionProviders/MissingMixManifestSolutionProvider.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Facade\Ignition\SolutionProviders;
|
||||
|
||||
use Facade\IgnitionContracts\BaseSolution;
|
||||
use Facade\IgnitionContracts\HasSolutionsForThrowable;
|
||||
use Illuminate\Support\Str;
|
||||
use Throwable;
|
||||
|
||||
class MissingMixManifestSolutionProvider implements HasSolutionsForThrowable
|
||||
{
|
||||
public function canSolve(Throwable $throwable): bool
|
||||
{
|
||||
return Str::startsWith($throwable->getMessage(), 'The Mix manifest does not exist');
|
||||
}
|
||||
|
||||
public function getSolutions(Throwable $throwable): array
|
||||
{
|
||||
return [
|
||||
BaseSolution::create('Missing Mix Manifest File')
|
||||
->setSolutionDescription('Did you forget to run `npm ci && npm run dev`?'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user