Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 5.6 can't publish and can't find captcha.php config #6

Open
yassersharaf opened this issue Oct 3, 2018 · 2 comments
Open

Comments

@yassersharaf
Copy link

yassersharaf commented Oct 3, 2018

I'm using PHP 7.2 with Laravel 5.6 I tried to follow the guide to install but failed

composer require captcha-com/laravel-captcha:"4.2.5"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals

  • Installing captcha-com/captcha (4.2.3): Cloning 66b498a523 from cache
  • Installing captcha-com/laravel-captcha (4.2.5): Downloading (100%)
    captcha-com/captcha suggests installing captcha-com/cakephp-captcha (BotDetect 4 PHP Captcha generator integration for the CakePHP framework.)
    captcha-com/captcha suggests installing captcha-com/symfony-captcha-bundle (BotDetect 4 PHP Captcha generator integration for the Symfony framework.)
    Writing lock file
    Generating autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover
Discovered Package: barryvdh/laravel-ide-helper
Discovered Package: fideloper/proxy
Discovered Package: intervention/image
Discovered Package: laravel/passport
Discovered Package: laravel/tinker
Discovered Package: nwidart/laravel-modules
Discovered Package: unisharp/laravel-filemanager
Package manifest generated successfully.
Illuminate\Foundation\ComposerScripts::postUpdate

Then

In app.php providers:

LaravelCaptcha\Providers\LaravelCaptchaServiceProvider::class

php artisan vendor:publish

Which provider or tag's files would you like to publish?:
[0 ] Publish files from all providers and tags listed below
[1 ] Provider: Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider
[2 ] Provider: Fideloper\Proxy\TrustedProxyServiceProvider
[3 ] Provider: Illuminate\Mail\MailServiceProvider
[4 ] Provider: Illuminate\Notifications\NotificationServiceProvider
[5 ] Provider: Illuminate\Pagination\PaginationServiceProvider
[6 ] Provider: Intervention\Image\ImageServiceProviderLaravel5
[7 ] Provider: Laravel\Passport\PassportServiceProvider
[8 ] Provider: Laravel\Tinker\TinkerServiceProvider
[9 ] Provider: Modules\API\Providers\APIServiceProvider
[10] Provider: Modules\Banks\Providers\BanksServiceProvider
[11] Provider: Modules\Galleries\Providers\GalleriesServiceProvider
[12] Provider: Modules\Groups\Providers\GroupsServiceProvider
[13] Provider: Modules\Modules\Providers\ModulesServiceProvider
[14] Provider: Modules\News\Providers\NewsServiceProvider
[15] Provider: Modules\Pages\Providers\PagesServiceProvider
[16] Provider: Modules\PaymentMethods\Providers\PaymentMethodsServiceProvider
[17] Provider: Modules\Services\Providers\ServicesServiceProvider
[18] Provider: Modules\Settings\Providers\SettingsServiceProvider
[19] Provider: Modules\UserLog\Providers\UserLogServiceProvider
[20] Provider: Modules\Users\Providers\UsersServiceProvider
[21] Provider: Nwidart\Modules\LaravelModulesServiceProvider
[22] Provider: UniSharp\LaravelFilemanager\LaravelFilemanagerServiceProvider
[23] Tag: config
[24] Tag: laravel-mail
[25] Tag: laravel-notifications
[26] Tag: laravel-pagination
[27] Tag: lfm_config
[28] Tag: lfm_handler
[29] Tag: lfm_public
[30] Tag: lfm_view
[31] Tag: passport-components
[32] Tag: passport-config
[33] Tag: passport-views

As you see can't find the captcha package

How to solve this?

@botdetect-support
Copy link
Contributor

botdetect-support commented Oct 3, 2018

Based on your log, looks like you didn't register LaravelCaptcha\Providers\LaravelCaptchaServiceProvider::class

as described in the following document:
https://captcha.com/doc/php/laravel-captcha-quickstart.html

Step 2: Register the Laravel Captcha service provider (<MY_LARAVEL_WEBROOT>/config/app.php):

"providers" => [
...
LaravelCaptcha\Providers\LaravelCaptchaServiceProvider::class
]

When you add this, once you run "php artisan vendor:publish" you should see the following provider in the list of providers (it is currently missing):

[X] Provider: LaravelCaptcha\Providers\LaravelCaptchaServiceProvider

Hope this helps.

@imannms
Copy link

imannms commented Jan 22, 2020

@botdetect-support please take a look #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants