Prerequisites
Before starting, ensure you’ve completed the Installation steps:- WireChat package installed via Composer
- Migrations run
- Default Panel Provider created
- User model implements
WirechatUsercontract
Choose Your Integration Method
WireChat offers two main integration approaches:Widget Mode
Floating chat button that opens a modal - perfect for adding chat to existing pages
Full Page Mode
Dedicated chat pages with full routing - ideal for standalone chat applications
Widget Mode
The fastest way to add chat to your application is using the widget component.Add widget to your layout
Add the widget component to your Blade layout where you want the chat button to appear:The
app.blade.php
@wirechatAssets directive automatically includes the widget component for authenticated users.Full Page Mode
For a dedicated chat experience, use WireChat’s full-page components.Use the default routes
WireChat automatically registers routes based on your panel configuration. By default:
/chat- Chat list (conversations)/chat/{conversationId}- Individual conversation view
Configure User Permissions
Control who can access chat features by implementing theWirechatUser interface methods in your User model:
- All Users
- Role-Based
Allow all authenticated users to use chat:
app/Models/User.php
Start Chatting
That’s it! Your users can now:- Start private chats - Click “New Chat” and select a user
- Create groups - Click “New Group” to create group conversations
- Send messages - Type and send text messages
- Share files - Upload and share attachments (if enabled)
- Search conversations - Find chats by user name or content
Next Steps
Enable Broadcasting
Add real-time message delivery with Laravel Echo
Configure Attachments
Set up file uploads and media sharing
Customize Colors
Match your brand with custom color schemes
Set Up Notifications
Enable web push notifications for new messages
Troubleshooting
Chat button doesn't appear
Chat button doesn't appear
Chat pages show 404
Chat pages show 404
Check that:
- Your panel is registered in the
ChatsPanelProvider - The panel is set as
default()or you’re using the correct path - Middleware allows access to the routes
Can't create conversations
Can't create conversations
Verify that:
canCreateChats()returnstruefor your user- You’ve configured
searchUsersUsing()in your panel to find other users - Database migrations have been run
For more troubleshooting help, see the Troubleshooting Guide.