Table Records that don't exist in database

Hi! I have a RelationshipManager where I want to display records even though they do not exist in database. Basically I have an enum of modules and I want to show them all in the relationship table whether the user has the relationship or not. If they have it, it should have an edit action. If they don't have it they should have an install button. I have tried the following solutions: 1. Overriding getTableRecords and getRecordKey. This way I can make a custom eloquent collection which is merged one with the actual database records and the non-database ones. However, when clicking an action it wont work since Filament seems to use the query to fetch the record and since the record does not actually exist in the database nothing happens. This solutions could probably work by overriding even more methods but that does not feel right. 2. Trying to make some kind of custom query that makes a sub query in the database and returns records that doesn't exist. Haven't managed to get this working though. Anyone have any ideas on how to solve this? Anyone faced any similar issue? Any help is appreciated!
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server