This package replaces the default Two-Factor Authentication driver with Google Authenticator.
-
Run
composer require eusebiu/laravel-spark-google2fa
-
Add
Eusebiu\LaravelSparkGoogle2FA\Google2FAServiceProvider::class
to yourproviders
array inconfig/app.php
-
Run
php artisan vendor:publish --provider="Eusebiu\LaravelSparkGoogle2FA\Google2FAServiceProvider"
-
Run
php artisan migrate
-
Edit
resources/views/vendor/spark/settings/security/enable-two-factor-auth.blade.php
and replace everything with@include('google2fa::enable-two-factor-auth')
-
Edit
resources/assets/js/spark-components/settings/security/enable-two-factor-auth.js
and replacerequire('settings/security/enable-two-factor-auth')
withrequire('./enable-two-factor-auth-google')
-
Run
gulp