davedriesmans
How to have a custom route for new entry?
Solved it like this:
``` class ListFunbels extends ListRecords
{
protected static string $resource = FunbelResource::class;
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make()->url(route('funbel.create'), shouldOpenInNewTab: false),
];
}
}
5 replies