Skip to content

User Model

Extended WordPress user model exposing FluentBooking-specific relations such as calendars and bookings.

Class

  • Source: fluent-booking/app/Models/User.php
  • Table: users
  • Primary key: ID
  • Extends: Model

Relationships

MethodTypeTarget
calendars()hasManyCalendar
bookings()belongsToManyCalendarSlot
staff()hasOneStaff

Public Methods (sample)

MethodSignature
calendars()
bookings()
user()
getFullNameAttribute()
staff()
getMeta()$key, $default = null
updateMeta()$key, $value