<?phpnamespaceFacade\Ignition\SolutionProviders;useException;useFacade\IgnitionContracts\BaseSolution;useFacade\IgnitionContracts\HasSolutionsForThrowable;useThrowable;classRunningLaravelDuskInProductionProviderimplementsHasSolutionsForThrowable{publicfunctioncanSolve(Throwable$throwable):bool{if(!$throwableinstanceofException){returnfalse;}return$throwable->getMessage()==='It is unsafe to run Dusk in production.';}publicfunctiongetSolutions(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.'),];}}