Minimal starter laravel application with two factor authentication using bootstrap 5.
Create new laravel 9 app or follow instruction in laravel docs
laravel new your-app-name
composer require erinrugas/laravel-2fa
composer require erinrugas/laravel-2fa "^1.1.4"
NOTE: If you are using laravel 9.19.0 or latest, this command will remove vite and revert back to laravel-mix. To migrate from laravel-mix to vite you may follow laravel instruction here.
php artisan laravel-2fa:install
npm install
npm run dev
php artisan laravel-2fa:migration
php artisan migrate
'providers' => [
...
ErinRugas\Laravel2fa\TwoFactorAuthServiceProvider::class
...
]
This Laravel 2FA is open source software license under the MIT license.