minor fixes

This commit is contained in:
omair saleh
2020-06-09 08:22:17 +08:00
parent 630a6e6364
commit 813ed7e99e
12 changed files with 115 additions and 6 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ class Project extends AbstractModel
}
public function tasks(): hasManyThrough {
return $this->hasManyThrough(Task::class, ProjectMilestone::class, 'project_id', 'milestone_id');
return $this->hasManyThrough(Task::class, ProjectMilestone::class, 'project_id', 'milestone_id')->orderBy('order');
}
protected static function boot() {