Skip to content

Commit 09575e5

Browse files
committed
Added tag color to transformer
1 parent 1693825 commit 09575e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Http/Transformers/CompaniesTransformer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function transformCompany(Company $company = null)
4040
'id' => (int) $company->adminuser->id,
4141
'name'=> e($company->adminuser->display_name),
4242
] : null,
43+
'tag_color' => ($company->tag_color!='') ? e($company->tag_color): null,
4344
'notes' => Helper::parseEscapedMarkedownInline($company->notes),
4445
'created_at' => Helper::getFormattedDateObject($company->created_at, 'datetime'),
4546
'updated_at' => Helper::getFormattedDateObject($company->updated_at, 'datetime'),

0 commit comments

Comments
 (0)