Corepine logo Corepine Wirechat
Login
Wirechat v0.6x latest

Search

Wirechat includes search paths for finding conversations and selecting users when starting chats, creating groups, adding members, or sharing invite links.

Enable the chat-list search field from the panel:

use Wirechat\Wirechat\Panel;

public function panel(Panel $panel): Panel
{
    return $panel
        ->chatsSearch();
}

Disable it by passing false:

->chatsSearch(false)

See Panels for the full panel option.

User search uses your application's user model. Configure searchable attributes when the default query is enough:

->searchableAttributes(['name', 'email', 'username'])

For custom eligibility rules, use searchUsersUsing() from your panel provider. The callback controls users returned by new-chat search, group creation, Add Members, and invite share searches. See Users for the full custom search example.

Encrypted Messages

Wirechat does not provide message body search. When message encryption is enabled, stored message bodies cannot be queried with database LIKE searches.

Use a separate indexing strategy for custom message search. See Encryption.