Skip to content
No description, website, or topics provided.
PHP HTML
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Small fixes Oct 3, 2019
bootstrap Generated with QuickAdminPanel Sep 27, 2019
config Generated with QuickAdminPanel Sep 27, 2019
database Added Two Factor Authentication Sep 28, 2019
public Generated with QuickAdminPanel Sep 27, 2019
resources Helper function instead of facade Oct 6, 2019
routes Added Two Factor Authentication Sep 28, 2019
storage Generated with QuickAdminPanel Sep 27, 2019
tests Generated with QuickAdminPanel Sep 27, 2019
.editorconfig Generated with QuickAdminPanel Sep 27, 2019
.env.example Generated with QuickAdminPanel Sep 27, 2019
.gitattributes Generated with QuickAdminPanel Sep 27, 2019
.gitignore Generated with QuickAdminPanel Sep 27, 2019
.styleci.yml Generated with QuickAdminPanel Sep 27, 2019
README.md Create README.md Oct 5, 2019
artisan
composer.json Generated with QuickAdminPanel Sep 27, 2019
composer.lock Generated with QuickAdminPanel Sep 27, 2019
package.json Generated with QuickAdminPanel Sep 27, 2019
phpunit.xml Generated with QuickAdminPanel Sep 27, 2019
server.php Generated with QuickAdminPanel Sep 27, 2019
webpack.mix.js Generated with QuickAdminPanel Sep 27, 2019
yarn.lock Generated with QuickAdminPanel Sep 27, 2019

README.md

Laravel Two-Factor Auth via Email

Simple demo-project to add two-factor authentication, with sending 6-digit unique verification code via email.

Every time user logs in, they will see this view, with ability to re-send the code:

Laravel two-factor authentication form

At the same time, this email will be sent:

Laravel two-factor authentication email


System is partly generated with QuickAdminPanel, based on Laravel 6 and CoreUI Free theme (Bootstrap 4) with form customization afterwards.


How to use

  • Clone the repository with git clone
  • Copy .env.example file to .env and edit database credentials there, also email provider settings (to send verification codes)
  • Run composer install
  • Run php artisan key:generate
  • Run php artisan migrate --seed (it has some seeded data for your testing)
  • That's it: launch the main URL.
  • You can login to adminpanel with default credentials admin@admin.com - password

License

Basically, feel free to use and re-use any way you want.


More from our LaravelDaily Team

You can’t perform that action at this time.