hasMany(BoardSetting::class, 'board_id'); } public function posts() { return $this->hasMany(Post::class, 'board_id'); } }