composer require ferdousanam/laravel-sms-verification
Add mobile_number_verified_at
column to Authenticatable
model's migration file.
$table->timestamp('mobile_number_verified_at')->nullable();
php artisan vendor:publish --tag=sms-verification-migrations
php artisan sms-verification:controllers
php artisan sms-verification:channels
Run the following command to publish configuration file
php artisan vendor:publish --tag=sms-verification
Use the traits HasVerificationTokens
, MustVerifyMobileNumber
in Authenticatable
models
<?php
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;
//...
}
php artisan route:list --name=sms-verification
Contact Author if interested for author as author is too lazy to write documentation 🙁 Ferdous Anam.
The MIT License (MIT). Please see License File for more information.