belongsTo(ArticlesCategories::class, 'category_id'); } public function recipes() { return $this->belongsToMany(Recipes::class); } public function answers() { return $this->hasMany(SurveysAnswers::class); } public function surveysAnswersUsers() { return $this->hasManyThrough( SurveysAnswers::class, SurveysAnswersUsers::class, 'survey_answer_id', 'article_id' ); } }