feat: add departments to projects — two-column layout with inline CRUD
This commit is contained in:
1 parent
58b3e9e0de
commit
60d57af630
6 files changed
+362
-56
No files matched your search
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user