Download the PHP package creatvstudio/laravel-otp without Composer
On this page you can find all versions of the php package creatvstudio/laravel-otp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download creatvstudio/laravel-otp
More information about creatvstudio/laravel-otp
Files in creatvstudio/laravel-otp
Package laravel-otp
Short Description A Laravel package that handles Time based OTP
License MIT
Homepage https://github.com/creatvstudio/laravel-otp
Informations about the package laravel-otp
Laravel OTP
This package is still in alpha stage. A laravel package to implement timebased otp.
Installation
You can install the package via composer:
Publish package
Run the migrations
Add to your config/app.php
Set your mail settings from .env
file
Publish config file using the following command:
Usage
Add trait to your User class
Protecting routes
Add the following codes to $routeMiddleware
of app/Http/Kernel.php
Use to your routes/web.php
Note: Default Laravel Authentication is required to make the otp routes work properly.
Customizing sending of OTP Code to Mail
To customize the contents of email when sending OTP Code, just modify ./app/Notifications/SendOtpNotification.php
Note: Please refer to Official Laravel Documentation for custom notifications.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Jeffrey Naval
- Samuel Magana
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.