PHP code example of changzhong / extension-google-authenticator
1. Go to this page and download the library: Download changzhong/extension-google-authenticator 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/ */
changzhong / extension-google-authenticator example snippets
namespace App\Admin\Controllers;
//use Dcat\Admin\Controllers\AuthController as BaseAuthController;
use Dcat\Admin\Extension\GoogleAuthenticator\Http\Controllers\AuthController as BaseAuthController;
class AuthController extends BaseAuthController
{
}
php artisan migrate --path=vendor/changzhong/extension-google-authenticator/database/migrations/2019_11_21_120702_add_google_auth_to_admin_users_table.php