belongsTo(Sant::class); } /** * @return mixed */ public function createdBy() { return $this->belongsTo(User::class, 'created_by', 'id'); } /** * @return mixed */ public function updatedBy() { return $this->belongsTo(User::class, 'updated_by', 'id'); } /** * @return mixed */ public function activity() { return $this->belongsTo(Activity::class, 'sant_id', 'subject_id'); } }