F
Filament11mo ago
Igor

1 resource with 2 ManageRecord is possible ?

Hello everyone, I have one model and a related resource, and I require two pages to list, edit and remove the data with a modal. The form and table will be the same on both pages, but one page requires a specific filter, while the other page will need a different filter.
1 Reply
Igor
IgorOP11mo ago
Based in documentation, I tried: public static function getPages(): array { return [ 'index' => Pages\ManageContasPagar::route('/pagar'), 'index-receber' => Pages\ManageContasReceber::route('/receber'), ]; } public static function getRecordSubNavigation(Page $page): array { return $page->generateNavigationItems([ Pages\ManageContasPagar::class, Pages\ManageContasReceber::class, ]); } the routes exits, but any new page at navigation menu
Want results from more Discord servers?
Add your server