PHP code example of saeidsharafi / filament-otp-auth
1. Go to this page and download the library: Download saeidsharafi/filament-otp-auth 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/ */
saeidsharafi / filament-otp-auth example snippets
namespace App\Filament\Pages;
use SaeidSharafi\FilamentOtpAuth\Filament\Pages\FilamentOtpAuth as OtpLogin;
use Illuminate\Contracts\Support\Htmlable;
class OverrideLogin extends OtpLogin
{
public function getHeading(): string | Htmlable
{
return 'Example Login Heading';
}
}
'login_page_class' => \App\Filament\Pages\OverrideLogin::class,
bash
php artisan vendor:publish --tag="filament-otp-auth-config"
bash
php artisan vendor:publish --tag="filament-otp-auth-translations"