Eagle
Eagle
FFilament
Created by Eagle on 5/22/2024 in #❓┊help
how to create two filament resource that corresponds to one model?
I have this table named taxonomies with following fields.
$table->id();
$table->string('name');
$table->string('type_of');
$table->id();
$table->string('name');
$table->string('type_of');
I have already a filament resource named TaxonomyResource in which the input field for type_of looks like following.
Forms\Components\Select::make('type_of')
->label('Type')
->required()
->options([
'category' => 'Category',
'tag' => 'Tag',
]),
Forms\Components\Select::make('type_of')
->label('Type')
->required()
->options([
'category' => 'Category',
'tag' => 'Tag',
]),
Now, I want to create a feature for creating those type_of values. I don't want make a different table for types. I am asked to use the same model and create a new resource for creating the types. I have not found any solution. So, what should I do? How should I proceed?
5 replies