Expanded chapters interface and improved book/page deletion

This commit is contained in:
Dan Brown
2015-07-28 20:57:13 +01:00
parent b9df3c647a
commit fd1a0dceb2
19 changed files with 282 additions and 141 deletions

View File

@ -22,11 +22,6 @@ class Page extends Model
return $this->belongsTo('Oxbow\Book');
}
public function children()
{
return $this->hasMany('Oxbow\Page')->orderBy('priority', 'ASC');
}
public function parent()
{
return $this->belongsTo('Oxbow\Page', 'page_id');