PHP code example of nicodwik / fortify
1. Go to this page and download the library: Download nicodwik/fortify library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nicodwik / fortify example snippets
bash
## Config
config/fortify.php
## Mail
app/Mail/TwoFactorAuthenticationQRCode.php
resources/views/email/twofactor-qrcode.blade.php
## 2FA page
resources/views/auth/two-factor/register.blade.php
resources/views/auth/two-factor/challenge.blade.php
resources/views/auth/two-factor/recovery-code.blade.php
## Migrations
database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php
## Listener (for last login feature)
app/Listeners/SetLastLoginSession.php
## Middleware (for last login feature)
app/Http/Middleware/CheckLastLoginMiddleware.php