PHP code example of raisulhridoy / laravel-2fa
1. Go to this page and download the library: Download raisulhridoy/laravel-2fa 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/ */
raisulhridoy / laravel-2fa example snippets
# Initialize the namespace
use RaisulHridoy\Laravel2FA\Http\App\TFA;
bash
php artisan vendor:publish --provider="RaisulHridoy\Laravel2FA\TwoFactorAuthServiceProvider"
bash
php artisan config:clear
php artisan cache:clear
php artisan migrate