====================================================
  MikroTik Voucher Reset Panel — ExonHost Setup
  Developed by Emon Khan
====================================================

FOLDER STRUCTURE
----------------
This zip contains two folders:

  public_html/   → Upload ALL contents into your public_html/ on ExonHost
  laravel_app/   → Upload this ENTIRE folder one level ABOVE public_html/
                   (i.e. in your home directory, NOT inside public_html)

Your server should look like this after uploading:
  ~/laravel_app/        ← the app
  ~/public_html/        ← the web root (already your default)

STEP-BY-STEP SETUP
-------------------
1. Upload laravel_app/ to your home directory (via File Manager or FTP)
   Path should be: /home/yourusername/laravel_app/

2. Upload all files inside public_html/ into your public_html/
   Path should be: /home/yourusername/public_html/

3. In ExonHost File Manager, go to laravel_app/
   Rename .env.example to .env
   Edit .env and fill in:
     APP_URL=https://yourdomain.com
     DB_DATABASE=your_db_name
     DB_USERNAME=your_db_user
     DB_PASSWORD=your_db_password

4. Create a MySQL database in cPanel → MySQL Databases
   Note the database name, username, and password

5. Run these commands via cPanel → Terminal (or SSH):
     cd ~/laravel_app
     php artisan key:generate
     php artisan migrate --seed
     php artisan storage:link
     php artisan config:cache
     php artisan route:cache
     php artisan view:cache

6. Set folder permissions (via Terminal or File Manager):
     chmod -R 775 ~/laravel_app/storage
     chmod -R 775 ~/laravel_app/bootstrap/cache

7. Visit your domain — you should see the login page!

DEFAULT LOGIN CREDENTIALS
--------------------------
  Admin:  admin@admin.com  /  admin123
  Seller: seller@demo.com  /  seller123

  ⚠️  Change these passwords immediately after first login!
      Admin → Settings → Change Password

TROUBLESHOOTING
---------------
- 500 error?  Check ~/laravel_app/storage/logs/laravel.log
- Blank page?  Make sure APP_KEY is set (step 5 above)
- DB error?    Double-check .env DB_* values match cPanel MySQL

====================================================
