- Evolution API v2 integration with full HTTP client - WhatsApp instance management (Create, Connect, Delete, LogOut, Restart) - Real-time QR Code display with Alpine.js countdown timer - Pairing code support for WhatsApp Web linking - Webhook endpoint for receiving Evolution API events - Complete instance settings (reject calls, always online, read messages, etc.) - Filament v4 Resource with modal QR Code after instance creation - Table actions for Connect, View, and Edit - Status badges with Filament's native components - Full translations support (English and Portuguese) - Native Filament multi-tenancy support - DTOs with Spatie Laravel Data for type safety - Laravel Events for extensibility - Background job processing for webhooks and messages - Comprehensive configuration file
52 lines
1.3 KiB
PHP
52 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
'status_connection' => [
|
|
'open' => 'Connected',
|
|
'connecting' => 'Connecting',
|
|
'close' => 'Disconnected',
|
|
'refused' => 'Refused',
|
|
],
|
|
|
|
'message_type' => [
|
|
'text' => 'Text',
|
|
'image' => 'Image',
|
|
'audio' => 'Audio',
|
|
'video' => 'Video',
|
|
'document' => 'Document',
|
|
'location' => 'Location',
|
|
'contact' => 'Contact',
|
|
'sticker' => 'Sticker',
|
|
],
|
|
|
|
'message_direction' => [
|
|
'incoming' => 'Incoming',
|
|
'outgoing' => 'Outgoing',
|
|
],
|
|
|
|
'message_status' => [
|
|
'pending' => 'Pending',
|
|
'sent' => 'Sent',
|
|
'delivered' => 'Delivered',
|
|
'read' => 'Read',
|
|
'failed' => 'Failed',
|
|
],
|
|
|
|
'webhook_event' => [
|
|
'application_startup' => 'Application Startup',
|
|
'qrcode_updated' => 'QR Code Updated',
|
|
'connection_update' => 'Connection Update',
|
|
'messages_set' => 'Messages Set',
|
|
'messages_upsert' => 'Message Received',
|
|
'messages_update' => 'Message Updated',
|
|
'messages_delete' => 'Message Deleted',
|
|
'send_message' => 'Message Sent',
|
|
'presence_update' => 'Presence Update',
|
|
'new_token' => 'New Token',
|
|
'logout_instance' => 'Instance Logout',
|
|
'remove_instance' => 'Instance Removed',
|
|
],
|
|
];
|