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

Error installing in Laravel 8 #3

Closed Zaheer-Khawaja closed 3 years ago

Zaheer-Khawaja commented 3 years ago

First of all; thank you for sharing. I was trying to install otp-validate in Laravel 8. Got this message : I am using MariaDB

composer require ferdous/laravel-otp-validate Using version ^1.2 for ferdous/laravel-otp-validate ./composer.json has been updated Running composer update ferdous/laravel-otp-validate Loading composer repositories with package information Updating dependencies Lock file operations: 1 install, 0 updates, 0 removals

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

ferdousulhaque commented 3 years ago

@Zaheer-Khawaja From the error what I understand that, the required Environment variables are not set properly. Please add the following entry to your .env file and it should work. Thank you for pointing, I am updating the README with this entry.

OTP_TABLE_NAME=otps