Adding the status to the page transformer. Removing unused urls

parent 9b8c6f7c
......@@ -16,10 +16,7 @@ class PageTransformer extends Resource
'translations' => [
'title' => optional($this->translate(locale()))->title,
'slug' => optional($this->translate(locale()))->slug,
],
'urls' => [
'delete_url' => route('api.page.page.destroy', $this->id),
'edit_url' => route('admin.page.page.edit', $this->id),
'status' => optional($this->translate(locale()))->status,
],
];
}
......
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