1. Go to this page and download the library: Download geof-dev/filament-web3-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/ */
geof-dev / filament-web3-auth example snippets
use GeofDev\FilamentWeb3Auth\FilamentWeb3AuthPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(
FilamentWeb3AuthPlugin::make()
->autoRegister(true) // Auto-create users on first login
->showOnLogin(true) // Show button on login page
);
}
use GeofDev\FilamentWeb3Auth\Pages\Auth\EditProfile;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->profile(EditProfile::class);
}
use Filament\Schemas\Components\View;
View::make('filament-web3-auth::components.wallet-manager')