How can I add a DeleteAction to View Page that does not have an Index page as part of its resource?

Hi, I have a resource called "Books" that has a relation called "Notes." I want a Notes record to have a landing/View page that can be bookmarked, but I can't figure out how to do that. I tried creating a Note Resource with just a View page like this:
public static function getPages(): array
{
return [
'view' => NoteViewPage::route('/{record}'),
];
}
public static function getPages(): array
{
return [
'view' => NoteViewPage::route('/{record}'),
];
}
Infolists work as expected. Edit actions work as expected, but when I add a Delete action, I get a route index not found error. I don't want to have to make an index page because that's not how I want the end user to interact with Notes. How can I get around the route not found error so that I can have a view page with an edit and delete action?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server