PHP code example of solution-forest / filament-email-2fa
1. Go to this page and download the library: Download solution-forest/filament-email-2fa 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/ */
solution-forest / filament-email-2fa example snippets
use Solutionforest\FilamentEmail2fa\FilamentEmail2faPlugin;
return $panel
// ...
->plugin(FilamentEmail2faPlugin::make());
use Solutionforest\FilamentEmail2fa\Interfaces\RequireTwoFALogin;
use Solutionforest\FilamentEmail2fa\Trait\HasTwoFALogin;
class FilamentUser extends Authenticatable implements FilamentUserContract,RequireTwoFALogin{
use HasTwoFALogin;
}