Adding a translations key

parent 527b4b61
......@@ -13,6 +13,10 @@ class PageTransformer extends Resource
'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),
......
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