table = acadlix()->helper()->acadlix_wp_prefix('term_taxonomy'); } public function scopeOfCourseCategory($query) { return $query->where('taxonomy', ACADLIX_COURSE_CATEGORY_TAXONOMY); } public function term() { return $this->belongsTo(WpTerm::class, 'term_id', 'term_id'); } public function termRelationships() { return $this->hasMany(WpTermRelationship::class, 'term_taxonomy_id', 'term_taxonomy_id'); } }