belongsTo(Director::class, 'director_id', 'id'); } public function spheres() { return $this->belongsTo(Sphere::class, 'sphere_id', 'id'); } public function employees() { return $this->belongsToMany(Employee::class, 'emploee_projects'); } }