PHP code example of ferdousanam / laravel-sms-verification

1. Go to this page and download the library: Download ferdousanam/laravel-sms-verification 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/ */

    

ferdousanam / laravel-sms-verification example snippets


$table->timestamp('mobile_number_verified_at')->nullable();



namespace App\Models;

use Anam\SmsVerification\Contracts\MustVerifyMobileNumber as MustVerifyMobileNumberContract;
use Anam\SmsVerification\HasVerificationTokens;
use Anam\SmsVerification\MustVerifyMobileNumber;

class User extends Authenticatable
{
    use HasVerificationTokens, MustVerifyMobileNumber;
    
    //...
}
bash
php artisan vendor:publish --tag=sms-verification-migrations
bash
php artisan sms-verification:controllers
bash
php artisan sms-verification:channels
bash
php artisan vendor:publish --tag=sms-verification
bash
php artisan route:list --name=sms-verification