How can add a new button in the login for different panel?

Hey guys i have this login and i want add a new button below the green button (Login button) i need add the button for this panel and add another button for other panel, how can do this?
No description
7 Replies
JibayMcs
JibayMcs3w ago
Hi ! Override the class Filament\Pages\Auth\Login (Livewire component) and the view too vendor/filament/filament/resources/views/pages/auth/login.blade.php Then call your newly fresh Login page in your panel provider like this:
class DefaultPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('default')
->path('/')
->login(\Your\New\Login::class)
[...];
}
}
class DefaultPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('default')
->path('/')
->login(\Your\New\Login::class)
[...];
}
}
And voilà !
toeknee
toeknee3w ago
OR... just add a render hook to the after?
JibayMcs
JibayMcs3w ago
oh...
No description
TranceCode
TranceCodeOP3w ago
Sorry guys, i forget the hooks, thank you so much!
TranceCode
TranceCodeOP3w ago
No description
Want results from more Discord servers?
Add your server