mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-10-01 09:13:19 -04:00
32 lines
837 B
PHP
32 lines
837 B
PHP
<?php
|
|
|
|
namespace Modules\Marketing\Transformers;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class FlashDealResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @param \Illuminate\Http\Request
|
|
* @return array
|
|
*/
|
|
public function toArray($request)
|
|
{
|
|
return [
|
|
'id' => $this->id,
|
|
'title' =>$this->title,
|
|
'background_color' => $this->background_color,
|
|
'text_color' => $this->text_color,
|
|
'start_date' => $this->start_date,
|
|
'end_date' => $this->end_date,
|
|
"slug"=> $this->slug,
|
|
"banner_image"=> $this->banner_image,
|
|
"status"=> $this->status,
|
|
"is_featured"=> $this->is_featured,
|
|
'AllProducts' =>$this->AllProducts,
|
|
];
|
|
}
|
|
}
|