elic-dev / laravel-math-captcha

A simple math captcha for Laravel form validation.
MIT License
12 stars 9 forks source link

vendor:publish doesn't work #9

Closed schel4ok closed 2 years ago

schel4ok commented 2 years ago

I receive too many spam during 2 days - about 60 messages and I decided to make it a little bit stronger, but none of this working.

php artisan vendor:publish --provider="ElicDev\MathCaptcha\MathCaptchaServiceProvider" --tag=config
php artisan vendor:publish --provider="ElicDev\MathCaptcha\MathCaptchaServiceProvider" --tag=lang

usually vendor:publish creates new file under config folder, but I see nothing.

L1lle commented 2 years ago

Hi, this seems to be related to the php version in the composer.json file.

With PHP8 composer installs the 1.0.2 version instead of the most current version 1.1.0. That old version does not yet support auto discover or config files.

I'm going to update the composer.json file.

L1lle commented 2 years ago

There is a new version 1.1.1 on composer which you can install via:

composer update elic-dev/laravel-math-captcha

this should update from 1.0.2 to 1.1.1 and supports language files and configs.

schel4ok commented 2 years ago

it works now