Skip to content

upcodersir/otp-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OTP-AUTH

A Laravel package to send/verify OTP authentication codes

Installation

To install this package in your Laravel project, use the following command:

composer require upcodersir/otp-auth

To publish config file, run the following command:

php artisan vendor:publish

Running that command, creates a otp.php file in your project's config folder, and you need to customize it.

  • valid_time
  • user_table
  • token_table
  • sms_client
  • sms_api_url
  • sms_api_key
  • mobile_containing_table

If your user's mobile numbers are not in user_table table, set mobile_containing_table to its name.

Then run artisan migrate to migrate tables:

php artisan migrate 

Usage

About

A Laravel package to send/verify OTP authentication codes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages