- 'id' => $deletion->getKey(),
- 'deleted_by' => $editor->getKey(),
- 'created_at' => $deletion->created_at->toJson(),
- 'updated_at' => $deletion->updated_at->toJson(),
- 'deletable_type' => $book->getMorphClass(),
- 'deletable_id' => $book->getKey(),
- 'children' => [
- 'BookStack\Page' => $book->pages_count,
- 'BookStack\Chapter' => $book->chapters_count,
+ 'id' => $deletion->id,
+ 'deletable' => [
+ 'pages_count' => $book->pages_count,
+ 'chapters_count' => $book->chapters_count,