How to use form fields that doesn't save to a table

Let's say I have 2 tables
Category => name, status (available options 'purchased' or 'not-purchased')
Part => name, category_id

How do I add a new field to filter category dropdown based on status for PartResource?

// how to make select without a table row
Forms\Components\Select::make('category_id')
                    ->relationship(name: 'category', titleAttribute: 'name')
                    ->columnSpanFull()
                    ->required(),
Was this page helpful?