Skip to content

Commit

Permalink
Adding a translations key
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 15, 2017
1 parent 527b4b6 commit 4c1f46a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Modules/Page/Transformers/PageTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ public function toArray($request)
'title' => $this->title,
'slug' => $this->slug,
'created_at' => $this->created_at->format('d-m-Y'),
'translations' => [
'title' => $this->title,
'slug' => $this->slug,
],
'urls' => [
'delete_url' => route('api.page.page.destroy', $this->id),
'edit_url' => route('admin.page.page.edit', $this->id),
Expand Down

0 comments on commit 4c1f46a

Please sign in to comment.