Files
exchange-2.0/app/Http/Resources/CompanyInfoResource.php

30 lines
916 B
PHP

<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class CompanyInfoResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'unified_social_credit_identifier' => $this->unified_social_credit_identifier,
'business_registration_number' => $this->business_registration_number,
'type' => $this->type,
'legal_representative' => $this->legal_representative,
'last_year_of_inspection' => $this->last_year_of_inspection,
'date_of_establishment' => $this->date_of_establishment,
'operation_period' => $this->operation_period,
'history' => $this->history,
'security' => $this->security
];
}
}