SETUP STEPS

1. Place the Code in Your Web Directory
- Put the PHP_CODE folder inside your web server document root
  Example:
  Apache (XAMPP): htdocs
  Nginx: /var/www/html

2. Configure Your Web Server
- Point your domain or virtual host to:
  PHP_CODE/public
- Set proper file and directory permissions for the project

3. Set Up Environment Variables
- Copy the environment file:
  .env.example to .env

- Update database connection settings in the .env file:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_db_username
DB_PASSWORD=your_db_password

4. Install Dependencies
- Open terminal and navigate to the project directory:

cd PHP_CODE
composer install
npm install

5. Generate Application Key
php artisan key:generate

6. Run Database Migrations
php artisan migrate

7. Create Storage Link
php artisan storage:link

8. Run Database Seeders (If Needed)
php artisan db:seed

9. Start the Application

Development Mode:
php artisan serve

Production Mode:
Configure Apache or Nginx to serve the application from:
PHP_CODE/public

10. Access the Admin Panel
- Open your web browser and navigate to your domain

Default Super Admin Credentials:
Email: superadmin@gmail.com
Password: superadmin

11. WebSocket Setup (Real-time Chat)
- Initialize WebSocket service:
php artisan websocket:init

- Set up Supervisor to keep the WebSocket process running
