© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•7mo ago•
9 replies
Soundmit

V4 Save form in livewire component

Hi, working on custom plugin for Filamentphp V4
I've worked without problem in the past with the V3 but this time i'm making a plugin that add a register/login form outside the panels
The plugin is registerd in the AdminPanel.

Livewire component
public function registerSchema(Schema $schema): Schema
    {
        return $schema
            ->schema([
                Section::make('Informazioni Tenant')
                    ->schema([
                        TextInput::make('tenant_name')
                            ->label('Nome Tenant')
                            ->required()
                            ->placeholder('Nome del tuo tenant'),

                        TextInput::make('tenant_domain')
                            ->label('Dominio')
                            ->required()
                            ->placeholder('mio-tenant'),

                        TextInput::make('tenant_database')
                            ->label('Database')
                            ->required()
                            ->placeholder('tenant_mio_tenant'),
                    ])
                    ->columns(1),

                Section::make('Informazioni Utente Admin')
                    ->schema([
                        TextInput::make('user_name')
                            ->label('Nome Utente')
                            ->required()
                            ->placeholder('Il tuo nome'),

                        TextInput::make('user_email')
                            ->label('Email')
                            ->email()
                            ->required()
                            ->placeholder('admin@example.com'),

                        TextInput::make('user_password')
                            ->label('Password')
                            ->password()
                            ->required()
                            ->placeholder('Password sicura'),
                    ])
                    ->columns(1),
            ]);
    }
public function registerSchema(Schema $schema): Schema
    {
        return $schema
            ->schema([
                Section::make('Informazioni Tenant')
                    ->schema([
                        TextInput::make('tenant_name')
                            ->label('Nome Tenant')
                            ->required()
                            ->placeholder('Nome del tuo tenant'),

                        TextInput::make('tenant_domain')
                            ->label('Dominio')
                            ->required()
                            ->placeholder('mio-tenant'),

                        TextInput::make('tenant_database')
                            ->label('Database')
                            ->required()
                            ->placeholder('tenant_mio_tenant'),
                    ])
                    ->columns(1),

                Section::make('Informazioni Utente Admin')
                    ->schema([
                        TextInput::make('user_name')
                            ->label('Nome Utente')
                            ->required()
                            ->placeholder('Il tuo nome'),

                        TextInput::make('user_email')
                            ->label('Email')
                            ->email()
                            ->required()
                            ->placeholder('admin@example.com'),

                        TextInput::make('user_password')
                            ->label('Password')
                            ->password()
                            ->required()
                            ->placeholder('Password sicura'),
                    ])
                    ->columns(1),
            ]);
    }
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

save component livewire form
FilamentFFilament / ❓┊help
17mo ago
Livewire component in form
FilamentFFilament / ❓┊help
2y ago
Form validation in Livewire component
FilamentFFilament / ❓┊help
3y ago
Livewire Form Component problem
FilamentFFilament / ❓┊help
13mo ago