#!/bin/bash
cd /var/www/html

# Pull latest code (if using Git)
# git pull origin main

# Install dependencies
composer install --optimize-autoloader --no-dev

# Clear and rebuild config
php artisan config:clear
php artisan config:cache

# Clear routes and views
php artisan route:cache
php artisan view:clear

# Run migrations (if needed)
# php artisan migrate --force

echo "✅ Deployment complete!"
