Working on API Transformers
This commit is contained in:
parent
79bef21e82
commit
083e995e2b
2 changed files with 1 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ class AccountTransformer extends EntityTransformer
|
|||
{
|
||||
protected $defaultIncludes = [
|
||||
'users',
|
||||
'clients',
|
||||
// 'clients',
|
||||
'invoices',
|
||||
'contacts',
|
||||
'products',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ class ContactTransformer extends EntityTransformer
|
|||
'first_name' => $contact->first_name,
|
||||
'last_name' => $contact->last_name,
|
||||
'email' => $contact->email,
|
||||
'user_id' => (int) $contact->user_id,
|
||||
'updated_at' => $contact->updated_at,
|
||||
'deleted_at' => $contact->deleted_at,
|
||||
'is_primary' => (bool) $contact->is_primary,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue