feat: add departments to projects — two-column layout with inline CRUD

This commit is contained in:
ghassan committed 2026-05-26 17:41:15 +03:00
1 parent 58b3e9e0de
commit 60d57af630
6 files changed
+362 -56

No files matched your search

+5
View File
@@ -21,4 +21,9 @@ class ProjectSetting extends Model
{
return $this->hasMany(\App\Models\Settings\Location::class, 'project_id');
}
public function departments(): \Illuminate\Database\Eloquent\Relations\HasMany
{
return $this->hasMany(\App\Models\Settings\Department::class, 'project_id');
}
}