可在laravel-admin中使用谷歌身份认证,安全快捷的使用令牌进行登录
composer require tanchengjin/laravel-admin-google-authenticator
google_authenticator_secret=
php artisan google:secret
'extensions' => [
't-laravel-admin-google-authenticator' => [
'enable' => true,
#谷歌令牌secret
'secret' => env('google_authenticator_secret', ''),
],
],
php artisan vendor:publish --provider=tanchengjin\LaravelAdmin\Google\Authenticator\GoogleAuthenticatorServiceProvider