30 lines
938 B
PHP
30 lines
938 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
use App\Models\Show\ShowDays;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
/** @mixin ShowDays */
|
|
class ShowDaysResource extends JsonResource
|
|
{
|
|
public function toArray(Request $request): array
|
|
{
|
|
return [
|
|
'id' => $this->id,
|
|
'first_show' => $this->first_show,
|
|
'last_show' => $this->last_show,
|
|
'start_time' => $this->start_time,
|
|
'timezone' => $this->timezone,
|
|
'duration' => $this->duration,
|
|
'day' => $this->day,
|
|
'repeat_type' => $this->repeat_type,
|
|
'next_pop_date' => $this->next_pop_date,
|
|
'show_id' => $this->show_id,
|
|
'record' => $this->record,
|
|
'created_at' => $this->created_at,
|
|
'updated_at' => $this->updated_at,
|
|
];
|
|
}
|
|
}
|