Return the public url

parent 0ee953f5
...@@ -13,6 +13,9 @@ class FullPageTransformer extends Resource ...@@ -13,6 +13,9 @@ class FullPageTransformer extends Resource
'id' => $this->id, 'id' => $this->id,
'template' => $this->template, 'template' => $this->template,
'is_home' => $this->is_home, 'is_home' => $this->is_home,
'urls' => [
'public_url' => $this->getCanonicalUrl(),
],
]; ];
foreach (LaravelLocalization::getSupportedLocales() as $locale => $supportedLocale) { foreach (LaravelLocalization::getSupportedLocales() as $locale => $supportedLocale) {
......
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