PATH:
home
/
lab2454c
/
tripvare.com
/
backup
/
vendor
/
facade
/
ignition
/
src
/
SolutionProviders
<?php namespace Facade\Ignition\SolutionProviders; use Exception; use Facade\IgnitionContracts\BaseSolution; use Facade\IgnitionContracts\HasSolutionsForThrowable; use Throwable; class RunningLaravelDuskInProductionProvider implements HasSolutionsForThrowable { public function canSolve(Throwable $throwable): bool { if (! $throwable instanceof Exception) { return false; } return $throwable->getMessage() === 'It is unsafe to run Dusk in production.'; } public function getSolutions(Throwable $throwable): array { return [ BaseSolution::create('Laravel Dusk should not be run in production.') ->setSolutionDescription('Install the dependencies with the `--no-dev` flag.'), BaseSolution::create('Laravel Dusk can be run in other environments.') ->setSolutionDescription('Consider setting the `APP_ENV` to something other than `production` like `local` for example.'), ]; } }
[-] UndefinedVariableSolutionProvider.php
[edit]
[-] UndefinedPropertySolutionProvider.php
[edit]
[-] MissingImportSolutionProvider.php
[edit]
[-] ViewNotFoundSolutionProvider.php
[edit]
[+]
..
[-] MissingAppKeySolutionProvider.php
[edit]
[-] SolutionProviderRepository.php
[edit]
[-] DefaultDbNameSolutionProvider.php
[edit]
[-] IncorrectValetDbCredentialsSolutionProvider.php
[edit]
[-] MissingPackageSolutionProvider.php
[edit]
[-] MergeConflictSolutionProvider.php
[edit]
[-] TableNotFoundSolutionProvider.php
[edit]
[-] MissingColumnSolutionProvider.php
[edit]
[-] MissingMixManifestSolutionProvider.php
[edit]
[-] RunningLaravelDuskInProductionProvider.php
[edit]
[-] RouteNotDefinedSolutionProvider.php
[edit]
[-] MissingLivewireComponentSolutionProvider.php
[edit]
[-] UnknownValidationSolutionProvider.php
[edit]
[-] LazyLoadingViolationSolutionProvider.php
[edit]
[-] BadMethodCallSolutionProvider.php
[edit]
[-] InvalidRouteActionSolutionProvider.php
[edit]