From 70a382a6df04731ea9bd3de5acba4e308d47b4d3 Mon Sep 17 00:00:00 2001 From: Julian Prieber Date: Tue, 28 Mar 2023 17:05:29 +0200 Subject: [PATCH] Update UserController.php --- app/Http/Controllers/UserController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 908989d..4968efd 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -519,12 +519,17 @@ class UserController extends Controller $vcard->addJobtitle($data['vtitle']); $vcard->addRole($data['role']); $vcard->addEmail($data['email']); + $vcard->addEmail($data['work_email'], 'WORK'); + $vcard->addURL($data['work_url'], 'WORK'); $vcard->addPhoneNumber($data['home_phone'], 'HOME'); $vcard->addPhoneNumber($data['work_phone'], 'WORK'); $vcard->addPhoneNumber($data['cell_phone'], 'CELL'); $vcard->addAddress($data['home_address_street'], '', $data['home_address_city'], $data['home_address_state'], $data['home_address_zip'], $data['home_address_country'], 'HOME'); $vcard->addAddress($data['work_address_street'], '', $data['work_address_city'], $data['work_address_state'], $data['work_address_zip'], $data['work_address_country'], 'WORK'); + + // $vcard->addPhoto(base_path('img/1.png')); + // Generate the vCard file contents $file_contents = $vcard->getOutput();