2026-08-06 21:18:52 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Modules\Catalog\Http\Resources;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
|
|
|
|
|
|
class EvCompanyResource extends JsonResource
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Transform the resource into an array.
|
|
|
|
|
*
|
|
|
|
|
* @return array<string, mixed>
|
|
|
|
|
*/
|
|
|
|
|
public function toArray(Request $request): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'id' => $this->id,
|
|
|
|
|
'name' => $this->name,
|
|
|
|
|
'mm_name' => $this->mm_name,
|
|
|
|
|
'slug' => $this->slug,
|
|
|
|
|
'description' => $this->description,
|
|
|
|
|
'mm_description' => $this->mm_description,
|
|
|
|
|
'contact' => $this->contact,
|
|
|
|
|
'address' => $this->address,
|
2026-08-23 23:59:13 +07:00
|
|
|
'logo' => $this->logo_url,
|
2026-08-06 21:18:52 +07:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|