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
@@ -11,8 +11,8 @@ class Attachment extends Model
|
||||
|
||||
public $timestamps = true;
|
||||
|
||||
public function subtask()
|
||||
public function mastertask()
|
||||
{
|
||||
return $this->belongsTo(SubTask::class);
|
||||
return $this->belongsTo(MasterTask::class, 'master_task_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user