Files
sibedas/app/Http/Resources/GlobalSettingResource.php
2025-01-26 03:57:48 +07:00

25 lines
520 B
PHP

<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class GlobalSettingResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return [
'key' => $this->key,
'value' => $this->value,
'type' => $this->type,
'description' => $this->description
];
}
}