display data according related relationships
I have 02 two models(sequence and academic) related with one to many relationship. I wish to display sequence list according academic .
class Sequence extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'academic_id',
'name',
'description'
];
protected $casts = [
'created_at' => 'datetime:Y-m-d',
];
public function academic() {
return $this->belongsTo(Academic::class);
}
} How to implement that ???
} How to implement that ???
1 Reply
You can read this part of the documentation:
https://filamentphp.com/docs/3.x/panels/resources/relation-managers