#!/bin/bash
# Production Optimization Commands
# Run these on the server after deployment

echo "Clearing Laravel caches..."
php artisan config:clear
php artisan cache:clear
php artisan route:clear
php artisan view:clear

echo "Creating storage symlink..."
php artisan storage:link

echo "Optimizing for production..."
php artisan config:cache
php artisan route:cache
php artisan view:cache

echo "Running migrations..."
php artisan migrate --force

echo "Seeding database (optional)..."
# php artisan db:seed --force

echo "Production setup complete!"
