id)->count(); } public function getCausal() { return $this->belongsTo(CourseSubscription::class); } public function getSubscriptionCausal() { return $this->belongsTo(CourseSubscription::class, 'sub_causal_id'); } }