Files

27 lines
739 B
PHP
Raw Permalink Normal View History

2026-07-18 15:12:44 +03:00
<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class SiteResource extends JsonResource
{
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'name' => $this->name,
'url' => $this->url,
'description' => $this->description,
'cms_type' => $this->cms_type,
'wp_username' => $this->wp_username,
'wp_app_password' => $this->wp_app_password,
'api_instructions' => $this->api_instructions,
'tone' => $this->tone,
2026-07-18 15:12:44 +03:00
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
];
}
}