PHPackages                             qiutuleng/laravel-passport-phone-verification-code - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. qiutuleng/laravel-passport-phone-verification-code

Abandoned → [qiutuleng/laravel-passport-phone-verification-code-grant](/?search=qiutuleng%2Flaravel-passport-phone-verification-code-grant)Library[Authentication &amp; Authorization](/categories/authentication)

qiutuleng/laravel-passport-phone-verification-code
==================================================

Resource owner phone verification code credentials grant for Laravel Passport

v2.0.3(6y ago)26297MITPHPPHP &gt;=5.6.4

Since Jan 19Pushed 6y ago4 watchersCompare

[ Source](https://github.com/qiutuleng/laravel-passport-phone-verification-code-grant)[ Packagist](https://packagist.org/packages/qiutuleng/laravel-passport-phone-verification-code)[ RSS](/packages/qiutuleng-laravel-passport-phone-verification-code/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (2)Dependencies (1)Versions (6)Used By (0)

Laravel Passport Phone Verification Code Grant
==============================================

[](#laravel-passport-phone-verification-code-grant)

Introduction
------------

[](#introduction)

Resource owner phone verification code credentials grant for Laravel Passport

[中文文档 / Chinese document](./README-zh-CN.md)

Install
-------

[](#install)

Under your working folder and run the command in terminal:

```
composer require qiutuleng/laravel-passport-phone-verification-code-grant
```

Setup
-----

[](#setup)

### Laravel

[](#laravel)

If your laravel version is greater or equal to `5.5`, the service provider will be attached automatically.

Other versions, you must needs add `\QiuTuleng\PhoneVerificationCodeGrant\PhoneVerificationCodeGrantServiceProvider::class` to the `providers` array in `config/app.php`:

```
'providers' => [
    /*
     * Package Service Providers...
     */
     ...
     \QiuTuleng\PhoneVerificationCodeGrant\PhoneVerificationCodeGrantServiceProvider::class,
]
```

### Lumen

[](#lumen)

```
$app->register(\QiuTuleng\PhoneVerificationCodeGrant\PhoneVerificationCodeGrantServiceProvider::class);
```

How to use?
-----------

[](#how-to-use)

### Configure

[](#configure)

1. You must needs implement `\QiuTuleng\PhoneVerificationCodeGrant\Interfaces\PhoneVerificationCodeGrantUserInterface` interface in your `User` model.

    ```
