-
Notifications
You must be signed in to change notification settings - Fork 0
Home
hos3ein edited this page Jul 22, 2021
·
3 revisions
composer require hos3ein/novel-auth
php artisan vendor:publish --provider="Hos3ein\NovelAuth\NovelAuthServiceProvider"
php artisan migrate
The vendor:publish
command discussed above will also publish the App\Providers\NovelAuthServiceProvider
class. You
should ensure this class is registered within the providers
array of your application's config/app.php
configuration
file.
'providers' => [
// ...
App\Providers\NovelAuthServiceProvider::class
]
Add HasOtpCodes
and NovelAuthAuthenticatable
to your eloquent model
class User extends Authenticatable
{
use HasOtpCodes, NovelAuthAuthenticatable;
...
}
Implement methods in App\Actions\NovelAuth\OtpManager.php
in order to do how to send SMS or make a Call and others.
Novel-Auth is open-sourced software licensed under the MIT license.