class Login extends \Filament\Pages\Auth\Login
{
protected static string $layout = 'filament.pages.auth.login';
public function form(Form $form): Form
{
return $form
->schema([
$this->getEmailFormComponent(),
$this->getLoginFormComponent(),
$this->getPasswordFormComponent(),
$this->getRememberFormComponent(),
])
->statePath('data');
}
protected function getLoginFormComponent(): Component
{
return TextInput::make('login')
->label('Login')
->required()
->autocomplete()
->autofocus();
}
}
class Login extends \Filament\Pages\Auth\Login
{
protected static string $layout = 'filament.pages.auth.login';
public function form(Form $form): Form
{
return $form
->schema([
$this->getEmailFormComponent(),
$this->getLoginFormComponent(),
$this->getPasswordFormComponent(),
$this->getRememberFormComponent(),
])
->statePath('data');
}
protected function getLoginFormComponent(): Component
{
return TextInput::make('login')
->label('Login')
->required()
->autocomplete()
->autofocus();
}
}