belongsToMany( SmartdokProfile::class, 'project_smartdok_profile', 'project_id', 'smartdok_profile_id' ); } /** * The departments associated with this project. */ public function departments(): BelongsToMany { return $this->belongsToMany( Department::class, 'department_project', 'project_id', 'department_id' ); } /** * The work hours entries linked to this project. */ public function workHours(): HasMany { return $this->hasMany(WorkHour::class, 'project_id'); } }