Files
2026-01-06 15:35:59 -05:00

26 lines
637 B
PHP

<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class SettingResource extends JsonResource
{
/**
* Transform the resource into an array.
*/
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'logo' => $this->logo,
'description' => $this->description,
'primary_color' => $this->primary_color,
'secondary_color' => $this->secondary_color,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
];
}
}