Skip to content

ferdousanam/laravel-sms-verification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel SMS Verification

Latest Version on Packagist Software License Total Downloads

Run the composer command to install

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();

Publish the migration files

php artisan vendor:publish --tag=sms-verification-migrations

Scaffold the sms verification controllers

php artisan sms-verification:controllers

Scaffold the sms verification channels

php artisan sms-verification:channels

Publish config

Run the following command to publish configuration file

php artisan vendor:publish --tag=sms-verification

Usage

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;
    
    //...
}

Check available routes for sms-verification

php artisan route:list --name=sms-verification

Dev Instruction

DEV.md

Author

Contact Author if interested for author as author is too lazy to write documentation 🙁 Ferdous Anam.

License

The MIT License (MIT). Please see License File for more information.

About

Laravel SMS Verification for Authenticatable Models

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages