Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../../vendor/webmozart/assert/../../stripe/./../dflydev/../nunomaduro/../psr/././../bin/../nunomaduro/../laravel/tinker/../../spatie/laravel-ignition/src/Solutions/SolutionProviders
الملفات الموجودة في هذا الـ Path:
.
..
DefaultDbNameSolutionProvider.php
GenericLaravelExceptionSolutionProvider.php
IncorrectValetDbCredentialsSolutionProvider.php
InvalidRouteActionSolutionProvider.php
LazyLoadingViolationSolutionProvider.php
MissingAppKeySolutionProvider.php
MissingColumnSolutionProvider.php
MissingImportSolutionProvider.php
MissingLivewireComponentSolutionProvider.php
MissingMixManifestSolutionProvider.php
MissingViteManifestSolutionProvider.php
RouteNotDefinedSolutionProvider.php
RunningLaravelDuskInProductionProvider.php
SolutionProviderRepository.php
TableNotFoundSolutionProvider.php
UndefinedLivewireMethodSolutionProvider.php
UndefinedLivewirePropertySolutionProvider.php
UndefinedViewVariableSolutionProvider.php
UnknownValidationSolutionProvider.php
ViewNotFoundSolutionProvider.php

مشاهدة ملف: RunningLaravelDuskInProductionProvider.php

<?php

namespace Spatie\LaravelIgnition\Solutions\SolutionProviders;

use Exception;
use Spatie\Ignition\Contracts\BaseSolution;
use Spatie\Ignition\Contracts\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()
                ->setSolutionTitle('Laravel Dusk should not be run in production.')
                ->setSolutionDescription('Install the dependencies with the `--no-dev` flag.'),

            BaseSolution::create()
                ->setSolutionTitle('Laravel Dusk can be run in other environments.')
                ->setSolutionDescription('Consider setting the `APP_ENV` to something other than `production` like `local` for example.'),
        ];
    }
}