Skip to main content

ConferenceRoom Model

The ConferenceRoom model represents a multi-party conference room for voice calls.

Overview

PropertyValue
NamespaceApp\Models
Tableconference_rooms
Primary Keyid
Global ScopeOrganizationScope

Database Schema

ColumnTypeNullableDefaultDescription
idbigint unsignedNoautoPrimary key
organization_idbigint unsignedNo-Foreign key to organizations
namevarchar(255)No-Room name
descriptiontextYesnullOptional description
max_participantsintNo25Maximum participants
statusvarchar(50)NoactiveUserStatus enum
pinvarchar(20)YesnullParticipant PIN
pin_requiredbooleanNofalseRequire PIN to join
host_pinvarchar(20)YesnullHost/moderator PIN
recording_enabledbooleanNofalseEnable recording
recording_auto_startbooleanNofalseAuto-start recording
recording_webhook_urlvarchar(500)YesnullRecording webhook
wait_for_hostbooleanNofalseWait for host before starting
mute_on_entrybooleanNotrueMute participants on entry
announce_join_leavebooleanNotrueAnnounce participants joining/leaving
music_on_holdbooleanNotruePlay music when alone
talk_detection_enabledbooleanNofalseEnable talk detection
talk_detection_webhook_urlvarchar(500)YesnullTalk detection webhook
created_attimestampNo-Creation timestamp
updated_attimestampNo-Last update timestamp

Attributes

Fillable

protected $fillable = [
'organization_id',
'name',
'description',
'max_participants',
'status',
'pin',
'pin_required',
'host_pin',
'recording_enabled',
'recording_auto_start',
'recording_webhook_url',
'wait_for_host',
'mute_on_entry',
'announce_join_leave',
'music_on_hold',
'talk_detection_enabled',
'talk_detection_webhook_url',
];

Casts

AttributeCastDescription
statusUserStatus::classStatus enum
pin_requiredbooleanBoolean cast
recording_enabledbooleanBoolean cast
recording_auto_startbooleanBoolean cast
wait_for_hostbooleanBoolean cast
mute_on_entrybooleanBoolean cast
announce_join_leavebooleanBoolean cast
music_on_holdbooleanBoolean cast
talk_detection_enabledbooleanBoolean cast

Relationships

Belongs To

  • organization() → Organization

Query Scopes

  • scopeForOrganization($query, $orgId)
  • scopeActive($query)
  • scopeInactive($query)
  • scopeWithStatus($query, $status)
  • scopeSearch($query, $search)