src/Http/Resources/TopicType/Export/AudioResource.php
<?php
namespace EscolaLms\TopicTypes\Http\Resources\TopicType\Export;
use EscolaLms\TopicTypes\Http\Resources\TopicType\Contacts\TopicTypeResourceContract;
use EscolaLms\TopicTypes\Services\TopicTypeService;
use Illuminate\Http\Resources\Json\JsonResource;
class AudioResource extends JsonResource implements TopicTypeResourceContract
{
public function toArray($request)
{
return [
'value' => TopicTypeService::sanitizePath($this->value),
'length' => $this->length,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
];
}
}