1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Transformer fixes

This commit is contained in:
David Bomba 2019-10-02 19:04:27 +10:00
parent bd1952df3a
commit a6579e43df
2 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,12 @@ class ClientContact extends Authenticatable
'company'
];
protected $casts = [
'updated_at' => 'timestamp',
'created_at' => 'timestamp',
'deleted_at' => 'timestamp',
];
protected $hidden = [
'password',
'remember_token',

View File

@ -84,6 +84,8 @@ class ClientTransformer extends EntityTransformer
'payment_terms' => (int) $client->payment_terms,
'vat_number' => $client->vat_number ?: '',
'id_number' => $client->id_number ?: '',
'updated_at' => $client->updated_at,
'deleted_at' => $client->deleted_at,
];
}
}