PHP code example of hos3ein / novel-auth
1. Go to this page and download the library: Download hos3ein/novel-auth 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/ */
hos3ein / novel-auth example snippets
'providers' => [
// ...
App\Providers\NovelAuthServiceProvider::class
]
class User extends Authenticatable
{
use HasOtpCodes, NovelAuthAuthenticatable;
...
}
shell
php artisan vendor:publish --provider="Hos3ein\NovelAuth\NovelAuthServiceProvider"
shell
php artisan migrate