v2 first commit
This commit is contained in:
@ -15,19 +15,14 @@ class Company extends TransformerAbstract
|
||||
{
|
||||
return [
|
||||
'id' => $model->id,
|
||||
'name' => $model->company_name,
|
||||
'email' => $model->company_email,
|
||||
'name' => $model->name,
|
||||
'email' => $model->email,
|
||||
'domain' => $model->domain,
|
||||
'address' => $model->company_address,
|
||||
'logo' => $model->company_logo,
|
||||
'default_account' => $model->default_account,
|
||||
'default_currency' => $model->default_currency,
|
||||
'default_tax' => $model->default_tax,
|
||||
'default_payment_method' => $model->default_payment_method,
|
||||
'default_language' => $model->default_language,
|
||||
'address' => $model->address,
|
||||
'logo' => $model->logo,
|
||||
'enabled' => $model->enabled,
|
||||
'created_at' => $model->created_at->toIso8601String(),
|
||||
'updated_at' => $model->updated_at->toIso8601String(),
|
||||
'created_at' => $model->created_at ? $model->created_at->toIso8601String() : '',
|
||||
'updated_at' => $model->updated_at ? $model->updated_at->toIso8601String() : '',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user