This app demonstrate the use of Laravel fortify for implementing two-factor-authentication
- Run the command
composer updateto install all dependencies - Define your database connection credential in a
.envfile. Check.env.examplefor guidance - Generate app keys by running the command
php artisan key:generate - After setting up the database, run the db migration with the command
php artisan migrate - Run
npm installto instal all js dependencies - You may also need to run
npm run devcommand to compile all js and css dependencies - To run the application in laravel packaged server, run the command
php artisan serve
- Register as a new user
- Scan the QR Code on your authenticator app e.g Google Authenticator
- Attempt to log in after enabling two-factor authentication