Overview
Thewirechat:install command sets up WireChat in your Laravel application by publishing configuration files, migrations, and creating a default chat panel.
Command Signature
What It Does
The installation command performs the following operations:Publish Configuration
Publishes the
wirechat.php configuration file to your config directory. If the file already exists, you’ll be prompted to confirm overwriting it.Create Storage Symlink
Creates a symbolic link from
public/storage to storage/app/public for file attachments.Publish Migrations
Publishes database migration files for conversations, messages, participants, and other WireChat tables.
Interactive Prompts
Existing Configuration
If a configuration file already exists atconfig/wirechat.php, you’ll see:
Example Output
Next Steps
After installation:-
Run migrations to create database tables:
-
Configure your panel provider in
app/Providers/Wirechat/ChatsPanelProvider.php -
(Optional) Set up push notifications:
Files Published
Main configuration file for WireChat settings (legacy, panel-based configuration recommended)
Migration files for all WireChat database tables
Default panel provider for customizing chat functionality
Source Reference
Command implementation:~/workspace/source/src/Console/Commands/InstallWirechat.php:11