Setup Essentials
Requirements for 6amMart Installation
Admin & Web (V3.8)
- PHP 8.2 or higher
- MySQL 5.7 or higher
- Laravel 12
Mobile App (V3.8)
- IDE: Android Studio latest version
- Flutter SDK (version 3.41.6 Stable)
- Install JDK 17
- Xcode 26.2 for IPA file build
For React (V3.8)
- Node js v16.8 or higher
- Npm / Yarn
- Vs code / Webstrom
For Rental Module (V1.8)
- You need to use minimum code version 3.6
For Rental Module (V1.8)
- You need to use minimum code version 3.6
Configure Laravel Reverb #
This guide explains how to configure and deploy the Laravel Reverb server, which replaces the legacy laravel-websockets package for real-time event broadcasting.
1. Environment Configuration (.env) #
To enable Reverb as your broadcasting driver, update your .env file with the following variables:
Required Reverb Variables:
BROADCAST_DRIVER = reverb – Enables Reverb broadcasting.
REVERB_APP_ID = 6ammart – Your Reverb Application ID.
REVERB_APP_KEY = 6ammart – Public App Key.
REVERB_APP_SECRET = 6ammart – Private App Secret.
REVERB_HOST = host_name – Host/IP for Reverb.
REVERB_PORT = 6001 – Default WebSocket port.
REVERB_SCHEME = http – Use https behind SSL proxy.
Client-Side Pusher Compatibility:
PUSHER_APP_ID = 6ammart
PUSHER_APP_KEY = 6ammart
PUSHER_HOST = host_name
PUSHER_PORT = 6001
PUSHER_SCHEME = http
PUSHER_APP_CLUSTER = mt12. Starting the Reverb Server #
php artisan reverb:start3. Deployment & Process Management #
Use Supervisor to keep Reverb and Queue Worker running.
Supervisor Installation:
sudo apt install supervisor
sudo yum install supervisorSupervisor Configuration (reverb.conf):
[program:reverb]
command=/usr/bin/php /home/laravel-echo/laravel-websockets/artisan reverb:start
autostart=true
autorestart=true
[program:queue-worker]
command=/usr/bin/php /home/laravel-echo/laravel-websockets/artisan queue:work --tries=3 --daemon
autostart=true
autorestart=trueActivate:
sudo supervisorctl update
sudo supervisorctl start reverb
sudo supervisorctl start queue-worker
Increase File Descriptors:
minfds=10240Configuration in Admin Panel #
After configuring all the settings above, turn on the Websocket and update the Websocket URL and Websocket Port.
