How to have a custom route for new entry?

I want to add have a custom url/route to add a new entry (the button on the top right of a table) I receive an error ("not enough memory") if I change the create route here:
public static function getPages(): array
{
return [
'index' => Pages\ListFunbels::route('/'),
'create' => Pages\CreateFunbel::route('/create'),
'edit' => Pages\EditFunbel::route('/{record}/edit'),
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListFunbels::route('/'),
'create' => Pages\CreateFunbel::route('/create'),
'edit' => Pages\EditFunbel::route('/{record}/edit'),
];
}
How can I achieve this?
2 Replies
mvenghaus
mvenghaus9mo ago
are you echo'n or print_r any data on your custom page?
davedriesmans
davedriesmansOP9mo ago
I have a custom page (totally independent from Filament) which I want to use 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), ]; } }
Want results from more Discord servers?
Add your server