antonioribeiro built a nice package that we can use to implement Google Two-Factor Authentication for Laravel.

Laravel two factor authentication

Google2FA is a PHP implementation of the Google Two-Factor Authentication Module, supporting the HMAC-Based One-time Password (HOTP) algorithm specified in RFC 4226 and the Time-based One-time Password (TOTP) algorithm specified in RFC 6238.

This package is a Laravel bridge to Google2FA's PHP package.

Demo

https://pragmarx.com/google2fa Demo