added url and call to action to entries migraiton and model

updated unit tests
This commit is contained in:
jon brookes 2026-01-17 16:35:14 +00:00
parent 0d688a0f82
commit 6731b4c487
5 changed files with 53 additions and 14 deletions

View file

@ -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,
];