added url and call to action to entries migraiton and model
updated unit tests
This commit is contained in:
parent
0d688a0f82
commit
6731b4c487
5 changed files with 53 additions and 14 deletions
|
|
@ -25,6 +25,8 @@ class EntryResource extends JsonResource
|
|||
'content' => $this->content,
|
||||
'category' => $this->category->name ?? null,
|
||||
'featured_image_url' => $this->getFirstMediaUrl('featured-image') ?: null,
|
||||
'call_to_action_text' => $this->call_to_action_text,
|
||||
'call_to_action_link' => $this->call_to_action_link,
|
||||
'created_at' => $this->created_at,
|
||||
'updated_at' => $this->updated_at,
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue