Files
ladill-care/app/Models/CareVoiceAnnouncement.php
T
isaaccladandCursor 03befd1e7f
Deploy Ladill Care / deploy (push) Failing after 57s
Add Care waiting-area TV displays with browser TTS voice.
Call-next and recall queue announcements for lobby screens without Ladill Queue.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-18 11:23:15 +00:00

32 lines
717 B
PHP

<?php
namespace App\Models;
use App\Models\Concerns\BelongsToOwner;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class CareVoiceAnnouncement extends Model
{
use BelongsToOwner;
protected $table = 'care_voice_announcements';
protected $fillable = [
'owner_ref', 'organization_id', 'branch_id', 'ticket_id',
'locale', 'message', 'voice', 'volume', 'repeat_count', 'status', 'played_at',
];
protected function casts(): array
{
return [
'played_at' => 'datetime',
];
}
public function ticket(): BelongsTo
{
return $this->belongsTo(CareQueueTicket::class, 'ticket_id');
}
}