label('Username') ->required() ->autofocus() ->extraInputAttributes(['tabindex' => 1]) ->autocomplete(); } protected function getCredentialsFromFormData(array $data): array { return [ 'username' => $data['username'], 'password' => $data['password'], ]; } protected function throwFailureValidationException(): never { throw ValidationException::withMessages([ 'data.username' => __('filament-panels::pages/auth/login.messages.failed'), ]); } public function getTitle(): Htmlable|string { return __('Login'); } public function getHeading(): Htmlable|string { return __('Login'); } }