Skip to content

Commit 0e7ab04

Browse files
authored
Add company, job, and url to vCard example
Signed-off-by: Linus Benkner <github@linusbenkner.de>
1 parent 094ebc3 commit 0e7ab04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/v-card.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Route::get('qr-code/examples/v-card', function ()
1313
$lastName = 'Doe';
1414
$title = 'Mr.';
1515
$email = 'john.doe@example.com';
16+
$company = "Acme Inc.";
17+
$job = "Developer";
18+
$url = "https://example.com";
1619

1720
// Addresses
1821
$homeAddress = [
@@ -55,7 +58,7 @@ Route::get('qr-code/examples/v-card', function ()
5558

5659
$phones = [$workPhone, $homePhone, $cellPhone];
5760

58-
return QRCode::vCard($firstName, $lastName, $title, $email, $addresses, $phones)
61+
return QRCode::vCard($firstName, $lastName, $title, $email, $company, $job, $url, $addresses, $phones)
5962
->setErrorCorrectionLevel('H')
6063
->setSize(4)
6164
->setMargin(2)

0 commit comments

Comments
 (0)