© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Ahmad

making an edit action in view

how can i make ->headeractions that there is a a button that u can change in view


public static function form(Form $form): Form
    {
        return $form
            ->schema([
                Section::make()
                ->icon('heroicon-m-building-storefront')
                ->description('this is a test')
                ->collapsible()
                ->columns(2)
                ->headerActions([
                    Action::make('edit')
                        ->action(function () {
                            // ...
                        }),
                ])
                    ->schema([
                        TextInput::make('debiteurnaam')
                            ->required()
                            ->maxLength(50),
                        TextInput::make("Bedrijf_user")
                            ->required(),
                        TextInput::make("Kvk"),
                        TextInput::make("Btw"),
                        TextInput::make("Db"),
                    ])
            ]);
    }
public static function form(Form $form): Form
    {
        return $form
            ->schema([
                Section::make()
                ->icon('heroicon-m-building-storefront')
                ->description('this is a test')
                ->collapsible()
                ->columns(2)
                ->headerActions([
                    Action::make('edit')
                        ->action(function () {
                            // ...
                        }),
                ])
                    ->schema([
                        TextInput::make('debiteurnaam')
                            ->required()
                            ->maxLength(50),
                        TextInput::make("Bedrijf_user")
                            ->required(),
                        TextInput::make("Kvk"),
                        TextInput::make("Btw"),
                        TextInput::make("Db"),
                    ])
            ]);
    }
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Add Edit action on View page
FilamentFFilament / ❓┊help
2y ago
Action inside Resource ViewAction blade view
FilamentFFilament / ❓┊help
3y ago
Add an Edit button in a view page
FilamentFFilament / ❓┊help
2y ago
View in Modal Action
FilamentFFilament / ❓┊help
3mo ago