FilamentF
Filamentโ€ข2y ago
matin rajabi

struggle with select field =_=

i create a Select then for its option
i have a model which has this relation:

public function filter(): BelongsTo { return $this->belongsTo(Filter::class, 'filters_id'); }
and in Filter::class i have another relation:
public function subfilters(): HasMany { return $this->hasMany(FilterDetail::class); }
and i want that the options will be FilterDetail::class rows

what should i do?
Solution
problem solved ๐Ÿ™‚ thanks for your time
Was this page helpful?