FilamentF
Filament2y ago
kian

Create action on custom page

I made a custom page and want to add a 'new' button to it. I added it, when i press it it shows an empty model with only buttons.
protected function getHeaderActions(): array
    {
        return [
            Actions\CreateAction::make()
            ->record(new Page())
        ];
    }


how can i make it so it opens a modal with fields?
Was this page helpful?