Add new Word props to the JSON:API Schema

This commit is contained in:
Leonard Smith 2021-05-04 17:01:05 -05:00
parent 559a774d88
commit f4708592dc
1 changed files with 4 additions and 0 deletions

View File

@ -35,11 +35,15 @@ class Schema extends SchemaProvider
public function getAttributes($resource)
{
return [
'verse-code' => $resource->verse_code,
'ulb' => $resource->ulb,
'greek' => $resource->greek,
'lemma' => $resource->lemma,
'morph' => $resource->morph,
'ognt-sort' => $resource->ognt_sort,
'ulb-sort' => $resource->ulb_sort,
'phrase-id' => $resource->phrase_id,
'sub' => $resource->sub,
'strongs-number' => $resource->strongs_number,
'created-at' => $resource->created_at->toAtomString(),
'updated-at' => $resource->updated_at->toAtomString(),