ferdousulhaque / laravel-otp-validate

Laravel package for OTP validation with built-in features like max retry and resend mechanism. Both OTP/Security Code over SMS or Email or AWS SNS of your choice with template user-defined.
71 stars 13 forks source link

laravel 5.6.* #2

Closed grimm04 closed 3 years ago

grimm04 commented 3 years ago

Problem 1

ferdousulhaque commented 3 years ago

Thank you for the feedback, will check on the issue. However, Laravel 5.6 is a bit older version for this package and for few basic packages it will not allow to install.

ferdousulhaque commented 3 years ago

@grimm04 In Laravel 5.6 by default carbon is added with version 1.26.* which is not compatible with this package. Hence, only way is to perform a minor upgrade to Laravel ^5.8.0 and Carbon version to ^2.0.0. Just run the below command first:

./vendor/bin/upgrade-carbon

It will start Carbon package upgrade, in the process it will ask for Laravel version minor upgrade, give the consent and then try to install package from composer. It will definitely work then. Let me know, if you are facing any difficulties.

Do you want us to try the following upgrade:
   - nesbot/carbon: ^2.0.0
   - laravel/framework: ^5.8.0
[Y/N] Y