mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
GET mastertasks, GET mastertasks/{id} endpointy
This commit is contained in:
1 parent
dfac41f30a
commit
ba6b9e20a5
16 files changed
+210
-12
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user