Add new Word props to the JSON:API Schema
This commit is contained in:
parent
559a774d88
commit
f4708592dc
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue