Skip to content

Commit

Permalink
Removing default translatable fields from base lvl
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 15, 2017
1 parent 5a302d8 commit d41cadc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Modules/Page/Transformers/PageTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ public function toArray($request)
{
return [
'id' => $this->id,
'title' => $this->title,
'slug' => $this->slug,
'is_home' => $this->is_home,
'template' => $this->template,
'created_at' => $this->created_at->format('d-m-Y'),
'translations' => [
'title' => $this->title,
'slug' => $this->slug,
'title' => $this->translate(locale())->title,
'slug' => $this->translate(locale())->slug,
],
'urls' => [
'delete_url' => route('api.page.page.destroy', $this->id),
Expand Down

0 comments on commit d41cadc

Please sign in to comment.