belongsTo(User::class, 'created_by'); } public function candidates() { return $this->hasMany(Candidate::class, 'source_id'); } }