belongsTo(Specialty::class, 'specialty_id', 'id'); } public function projects() { return $this->belongsToMany(Project::class, 'emploee_projects'); } }