Feedback / Draft + extra days
This commit is contained in:
parent
6e0c7e8706
commit
f9fcaac838
13 changed files with 453 additions and 395 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue