Adding a translations key

parent 527b4b61
...@@ -13,6 +13,10 @@ class PageTransformer extends Resource ...@@ -13,6 +13,10 @@ class PageTransformer extends Resource
'title' => $this->title, 'title' => $this->title,
'slug' => $this->slug, 'slug' => $this->slug,
'created_at' => $this->created_at->format('d-m-Y'), 'created_at' => $this->created_at->format('d-m-Y'),
'translations' => [
'title' => $this->title,
'slug' => $this->slug,
],
'urls' => [ 'urls' => [
'delete_url' => route('api.page.page.destroy', $this->id), 'delete_url' => route('api.page.page.destroy', $this->id),
'edit_url' => route('admin.page.page.edit', $this->id), 'edit_url' => route('admin.page.page.edit', $this->id),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment