PHPackages                             ferdousanam/laravel-sms-verification - 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. ferdousanam/laravel-sms-verification

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

ferdousanam/laravel-sms-verification
====================================

Laravel SMS Verification for Authenticatable Models

v1.0.0(3y ago)04MITPHPPHP ^7.3|^8.0

Since Nov 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ferdousanam/laravel-sms-verification)[ Packagist](https://packagist.org/packages/ferdousanam/laravel-sms-verification)[ Docs](https://github.com/ferdousanam/laravel-sms-verification)[ RSS](/packages/ferdousanam-laravel-sms-verification/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Laravel SMS Verification
========================

[](#laravel-sms-verification)

[![Latest Version on Packagist](https://camo.githubusercontent.com/21f58ff8b3788d2f90eee3ee92af5dff27633761d616ac022f6ce0960859bcc2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666572646f7573616e616d2f6c61726176656c2d736d732d766572696669636174696f6e3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ferdousanam/laravel-sms-verification)[![Software License](https://camo.githubusercontent.com/ea990e8d0b909aa8f2ec304cbf573e6cffd9b9c87b47f0d610c4ab3775abfe99/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f666572646f7573616e616d2f6c61726176656c2d736d732d766572696669636174696f6e3f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/edc8827aec47cd425cb08924be22616c47b96406ffaa8d463327d2a9af557a87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666572646f7573616e616d2f6c61726176656c2d736d732d766572696669636174696f6e3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ferdousanam/laravel-sms-verification)

Run the composer command to install
-----------------------------------

[](#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
---------------------------

[](#publish-the-migration-files)

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

Scaffold the sms verification controllers
-----------------------------------------

[](#scaffold-the-sms-verification-controllers)

```
php artisan sms-verification:controllers
```

Scaffold the sms verification channels
--------------------------------------

[](#scaffold-the-sms-verification-channels)

```
php artisan sms-verification:channels
```

Publish config
--------------

[](#publish-config)

Run the following command to publish configuration file

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

Usage
-----

[](#usage)

Use the traits `HasVerificationTokens`, `MustVerifyMobileNumber` in `Authenticatable` models

```
