mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-14 09:01:42 -04:00
26 lines
635 B
PHP
26 lines
635 B
PHP
<?php
|
|
|
|
namespace Modules\StudioPlus\Transformers;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class WatermarkingJobResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @param \Illuminate\Http\Request
|
|
* @return array
|
|
*/
|
|
public function toArray($request): array
|
|
{
|
|
return [
|
|
'id' => $this->id,
|
|
'video' => $this->whenLoaded('video'),
|
|
'status' => ucfirst($this->status),
|
|
'stamp' => $this->created_at->format('M j h:i A'),
|
|
'created_at' => $this->created_at,
|
|
];
|
|
}
|
|
}
|