Registration and Login with Username or Email

FilamentExamples ThumbBase (24)

Get the Source Code:

How it works

To start with this, we have to add a custom login and registration page to our Panel Provider:

app/Providers/Filament/AdminPanelProvider.php

 
use App\Filament\Pages\Login;
use App\Filament\Pages\Register;
 
// ...
 
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->login(Login::class)
->registration(Register::class)
->colors([
'primary' => Color::Amber,
])
The FULL tutorial is available after the purchase: in the Readme file of the official repository you would get invited to.
Get the Source Code: All 65 Premium Examples for $99