If you want to override the label(s) of fields in the register form, follow the steps below. The same logic applies for customizations of the login form.
Step 1. Create a class extending the Filament\Pages\Auth\Register.
app/Filament/Pages/Register.php
namespace App\Filament\Pages; use Filament\Pages\Auth\Register as BaseRegister; class Register extends BaseRegister{ // Any customizations will go here}
Step 2. Specify that class in the PanelProvider.
app/Providers/Filament/AdminPanelProvider.php
use App\Filament\Pages\Register; // ... public function panel(Panel $panel): Panel ->id('admin') ->path('admin') ->login() ->registration(Register::class)
Step 3. Override methods like getNameFormComponent(), getPasswordFormComponent(), etc.
app/Filament/Pages/Register.php
class Register extends BaseRegister{ protected function getNameFormComponent(): Component { return TextInput::make('name') ->label('Full name') ->required() ->maxLength(255) ->autofocus(); }}
For the list of available methods to override, check the Filament source code.
Enjoyed This Tip?
Get access to all premium tutorials, video and text courses, and exclusive Laravel resources. Join our community of 10,000+ developers.
Recent Courses
Laravel Modules and DDD
16 lessons
1 h 59 min
Laravel 12 For Beginners: Your First Project
15 lessons
1 h 32 min
Filament 4 From Scratch
28 lessons
2 h 25 min