#!/bin/bash set -e echo "๐Ÿ”„ Pulling latest backend changes..." git pull origin main echo "๐Ÿ“ฆ Installing PHP dependencies..." composer install --no-interaction --prefer-dist --optimize-autoloader echo "๐Ÿ—„๏ธ Running migrations..." php artisan migrate --force echo "๐Ÿงน Clearing and caching config..." php artisan config:cache php artisan route:cache php artisan view:cache echo "โœ… Backend update complete!"