mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-30 18:03:59 +00:00
Create company info table, insert data into company info, update companyResource when businessType is online shop
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?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
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user