Skip to content

๐Ÿ“‹ BookingMeta Model โ€‹

The BookingMeta model stores key-value data specifically for bookings, such as custom form field responses or integration-specific tokens.

Attributes โ€‹

AttributeTypeDescription
idbigintPrimary key
booking_idbigintReference to the booking
meta_keyvarcharUnique key name
valuelongtextMeta value (auto-serialized/unserialized)
created_attimestampRecord creation time
updated_attimestampRecord last update time

Relations โ€‹

booking โ€‹

Belongs to a Booking.

Usage Examples โ€‹

Accessing Custom Field Data โ€‹

php
use FluentBooking\App\Models\Booking;

$company = Booking::find(123)->getMeta('company_name');