PHP code example of ivansotelo / twilio-verify

1. Go to this page and download the library: Download ivansotelo/twilio-verify library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ivansotelo / twilio-verify example snippets


IvanSotelo\TwilioVerify\TwilioVerifyServiceProvider::class,

protected $routeMiddleware = [
    // …
    'isVerified' => \IvanSotelo\TwilioVerify\Http\Middleware\EnsurePhoneIsVerified::class,

Route::group(['middleware' => ['isVerified']], function () {
    // …

Route::get('phone/verify/{code}', 'VerificationController@verify')->name('verification.verify');
Route::post('phone/resend', 'VerificationController@resend')->name('verification.resend');

/config/twilio-verify.php

php artisan migrate --path="/vendor/ivansotelo/twilio-verify/database/migrations"

php artisan vendor:publish --provider="IvanSotelo\TwilioVerify\TwilioVerifyServiceProvider" --tag="migrations"

php artisan vendor:publish --provider="IvanSotelo\TwilioVerify\TwilioVerifyServiceProvider" --tag="translations"