We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a4ef5 commit 134de71Copy full SHA for 134de71
src/BookJsonResource.php
@@ -21,7 +21,7 @@ public function toArray($request): array
21
'formatted_published_date' => $this->published_date
22
? $this->published_date->isoFormat('Do MMMM YYYY')
23
: null,
24
- 'availability_label' => $this->availability_label,
+ 'availability_label' => $this->availability?->getLabel(),
25
'short_details' => $this->short_details,
26
'orderable' => $this->canBeOrdered(),
27
'url' => $this->url,
0 commit comments