belongsTo(ArticleCategory::class, 'type_id'); } public function show_property() { return $this->belongsTo(ArticleProperty::class, 'property_id'); } public function subsites() { return $this->hasMany(SubsiteArticle::class, 'article_id'); } }