25 lines
558 B
PHP
Raw Normal View History

2022-06-01 10:15:55 +03:00
<?php
namespace App\Http\Resources\Setting;
use Illuminate\Http\Resources\Json\JsonResource;
class Setting extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
*/
public function toArray($request)
{
return [
'id' => $this->id,
'company_id' => $this->company_id,
'key' => $this->key,
'value' => $this->value,
];
}
}