belongsTo(NoticeCategory::class,'type_id'); } public function subsites() { return $this->hasMany(SubsiteNotice::class, 'notice_id'); } }