https://github.com/mewebstudio/captcha.
я делаю все шаги, которые он говорит в документе, и на последнем шаге (php artisanvendor:publish) у меня возникает эта ошибка.
Код: Выделить всё
Illuminate\Contracts\Container\BindingResolutionException
Target class [validator] does not exist.
at vendor/laravel/framework/src/Illuminate/Container/Container.php:940
936▕
937▕ try {
938▕ $reflector = new ReflectionClass($concrete);
939▕ } catch (ReflectionException $e) {
➜ 940▕ throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
941▕ }
942▕
943▕ // If the type is not instantiable, the developer is attempting to resolve
944▕ // an abstract type such as an Interface or Abstract Class and there is
1 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()
+15 vendor frames
17 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()
php artisan config:clear
php artisan config:clear
composer dump-autoload
композитор устанавливает
php artisanvendor:publish --provider="Mews\Captcha\CaptchaServiceProvider"
и получает ту же ошибку.
я использую php:8.3 и laravel 11.9
извините за мой плохой английский.
попробуйте: php artisanvendor:publish
результат: целевой класс [валидатор] не существует.
Подробнее здесь: https://stackoverflow.com/questions/790 ... -not-exist