25 lines
558 B
PHP
25 lines
558 B
PHP
<?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,
|
|
];
|
|
}
|
|
}
|