Feedback / Draft + extra days

This commit is contained in:
Kevin Adametz 2019-01-03 12:02:06 +01:00
parent 6e0c7e8706
commit f9fcaac838
13 changed files with 453 additions and 395 deletions

View file

@ -23,7 +23,7 @@ class Feedback extends Page
public function parent()
{
return $this->belongsTo('App\Models\Feedback', 'owner');
return $this->belongsTo('App\Models\Feedback', 'parent_id');
}
public function getParent()
@ -34,6 +34,11 @@ class Feedback extends Page
return false;
}
public function children()
{
return $this->hasMany('App\Models\Feedback', 'parent_id');
}
public function setContentAttribute($value)
{