morphMany(File::class, 'fileable'); } public function comments() { return $this->hasMany(BoardComment::class, 'post_id')->whereNull('parent_id')->where('status', 'active'); } public function board() { return $this->belongsTo(Board::class, 'board_id'); } }