PHPackages                             alhaji-aki/laravel-otp-token - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. alhaji-aki/laravel-otp-token

ActiveLibrary[Framework](/categories/framework)

alhaji-aki/laravel-otp-token
============================

Create otp tokens for users on your application

1.3.1(1y ago)814.1k↓50%1[3 PRs](https://github.com/alhaji-aki/laravel-otp-token/pulls)1MITPHPPHP ^8.1|^8.2|^8.3|^8.4CI passing

Since Dec 11Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/alhaji-aki/laravel-otp-token)[ Packagist](https://packagist.org/packages/alhaji-aki/laravel-otp-token)[ Docs](https://github.com/alhaji-aki/laravel-otp-token)[ RSS](/packages/alhaji-aki-laravel-otp-token/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (17)Used By (1)

Laravel Otp Token
=================

[](#laravel-otp-token)

This is a simple package to help generate otp tokens for users. This package follows the same approach as laravel's password reset functionality.

Installation
------------

[](#installation)

You can install the package via composer by running:

```
composer require "alhaji-aki/laravel-otp-token"
```

After the installation has completed, the package will automatically register itself. Run the following to publish the migration, config and lang file

```
php artisan vendor:publish --provider="AlhajiAki\OtpToken\OtpTokenServiceProvider"
```

After publishing the migration you can create the otp\_tokens table by running the migrations:

```
php artisan migrate
```

The contents of the config file looks like:

```
