GET mastertasks, GET mastertasks/{id} endpointy

This commit is contained in:
StudioTem committed 2023-01-24 23:19:12 +01:00
1 parent dfac41f30a
commit ba6b9e20a5
16 files changed
+210 -12

No files matched your search

+2 -2
View File
@@ -13,12 +13,12 @@ class SubTask extends Model
public function mastertask()
{
return $this->belongsTo(MasterTask::class);
return $this->belongsTo(MasterTask::class, 'master_task_id');
}
public function user()
{
return $this->belongsTo(MasterTask::class);
return $this->belongsTo(User::class);
}
public function timeblocks()