Download the PHP package ibrahem-kamal/laravel-otp without Composer
On this page you can find all versions of the php package ibrahem-kamal/laravel-otp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ibrahem-kamal/laravel-otp
More information about ibrahem-kamal/laravel-otp
Files in ibrahem-kamal/laravel-otp
Package laravel-otp
Short Description generate and verify otp being sent to users
License MIT
Homepage https://github.com/ibrahem-kamal/laravel-otp
Informations about the package laravel-otp
laravel-otp
Laravel Otp is designed to generate and verify otp being sent to users
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
You can add as many services as you want, and you can use the fallback options to set the default options for the otp generation and verification
Usage
- First you need to prepare your model by implementing the
HasOtp
Interface and using theInteractsWithOtp
trait
If you dont have
phone
column in your model, you can override thegetPhoneNumber
method to return the user phone number like this
-
Then you can use the
Otp
to generate otp - You can verify the otp using the
verify
method
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- ibrahemkamal
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-otp with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0|^11.0