messages implemented
This commit is contained in:
28
config/messaging.php
Normal file
28
config/messaging.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'realtime' => (bool) env('MESSAGING_REALTIME', false),
|
||||
|
||||
'typing' => [
|
||||
'ttl_seconds' => (int) env('MESSAGING_TYPING_TTL', 8),
|
||||
'cache_store' => env('MESSAGING_TYPING_CACHE_STORE', 'redis'),
|
||||
],
|
||||
|
||||
'search' => [
|
||||
'index' => env('MESSAGING_MEILI_INDEX', 'messages'),
|
||||
'page_size' => (int) env('MESSAGING_SEARCH_PAGE_SIZE', 20),
|
||||
],
|
||||
|
||||
'reactions' => [
|
||||
'allowed' => ['👍', '❤️', '🔥', '😂', '👏', '😮'],
|
||||
],
|
||||
|
||||
'attachments' => [
|
||||
'disk' => env('MESSAGING_ATTACHMENTS_DISK', 'local'),
|
||||
'max_files' => (int) env('MESSAGING_ATTACHMENTS_MAX_FILES', 5),
|
||||
'max_image_kb' => (int) env('MESSAGING_ATTACHMENTS_MAX_IMAGE_KB', 10240),
|
||||
'max_file_kb' => (int) env('MESSAGING_ATTACHMENTS_MAX_FILE_KB', 25600),
|
||||
'allowed_image_mimes' => ['image/jpeg', 'image/png', 'image/webp'],
|
||||
'allowed_file_mimes' => ['application/pdf', 'application/zip', 'application/x-zip-compressed'],
|
||||
],
|
||||
];
|
||||
@@ -123,6 +123,21 @@ return [
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
env('SCOUT_PREFIX', env('MEILI_PREFIX', '')) . 'messages' => [
|
||||
'searchableAttributes' => [
|
||||
'body_text',
|
||||
'sender_username',
|
||||
],
|
||||
'filterableAttributes' => [
|
||||
'conversation_id',
|
||||
'sender_id',
|
||||
'has_attachments',
|
||||
],
|
||||
'sortableAttributes' => [
|
||||
'created_at',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user