---
title: "Guest contacts — Appointments for Laravel | Roundly"
description: "Store booking emails and phone numbers on an appointment and turn them into calendar ORGANIZER and ATTENDEE mailto lines."
url: https://roundly-consulting.com/open-source/docs/appointments-for-laravel/guest-contacts
language: en
---

[All packages](https://roundly-consulting.com/open-source.md)

[Appointments for Laravel](https://roundly-consulting.com/open-source/docs/appointments-for-laravel.md)

# Guest contacts

Guest bookings often have no user account behind them. Store the booking’s email and phone directly on the appointment — contacts-for-laravel is wired into the bundled model:

```php
use RoundlyConsulting\Appointments\Facades\Appointments;

$appointment = Appointments::schedule('Guest booking')
    ->startingAt('2026-07-01 09:00')
    ->withContactEmail('guest@example.com')
    ->withContactPhone('+441234567890')
    ->create();

$appointment->primaryEmail()?->value;          // "guest@example.com"
$appointment->primaryPhone()?->value;          // "+441234567890"
```

withContactEmail() and withContactPhone() take the value, an optional label and a primary flag that defaults to true.

## Contacts on an existing appointment

```php
use RoundlyConsulting\Contacts\Enums\ContactType;

$appointment->addEmail('other@example.com');                  // not primary by default
$appointment->addPhone('+441234567891', 'Reception', primary: true);
$appointment->contactsOfType(ContactType::Email);             // every email contact
$appointment->contacts;                                       // all contacts (MorphMany)
```

## Calendar addresses

The appointment’s primary email becomes the calendar ORGANIZER, named after the contact’s name or, failing that, its label:

```php
Appointments::schedule('Clinic visit')
    ->startingAt('2026-07-01 09:00')
    ->withContactEmail('desk@example.com', 'Front desk')   // ORGANIZER;CN=Front desk:mailto:desk@example.com
    ->withParticipant($patient)
    ->create();
```

Participants are exported as ATTENDEE lines when their own model has a primary email — add HasContacts to your participant models:

```php
use Illuminate\Database\Eloquent\Model;
use RoundlyConsulting\Appointments\Concerns\HasAppointments;
use RoundlyConsulting\Contacts\Concerns\HasContacts;

class Patient extends Model
{
    use HasAppointments;
    use HasContacts;
}

$patient->addEmail('alex@example.com', primary: true);
// exported as ATTENDEE;CN=<the patient's name attribute>:mailto:alex@example.com
```

## Show your open-source love

This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.

[More ways to support, including crypto](https://roundly-consulting.com/support-us.md)

By donating, you agree to our [donation terms](https://roundly-consulting.com/donation-terms.md).

[Support our open source work (opens in a new tab)](https://donate.stripe.com/dRmeVe8FX5PF1Qd9pXcEw00) [Join us on Patreon (opens in a new tab)](https://www.patreon.com/cw/roundly)

## Want this built into your product?

We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.

[Get a quote in 48 hours](https://roundly-consulting.com/contact.md) [Browse all packages](https://roundly-consulting.com/open-source/docs/appointments-for-laravel.md)
