Skip to content

Instantly share code, notes, and snippets.

@Scemist
Created May 7, 2024 11:26
Show Gist options
  • Save Scemist/3d9bd85f878c1fe3530a40b3a0b8300a to your computer and use it in GitHub Desktop.
Save Scemist/3d9bd85f878c1fe3530a40b3a0b8300a to your computer and use it in GitHub Desktop.
How to Optimize Laravel App in Production
# Install dependences without the dev-only
npm install --omit=dev
composer install --no-dev -o
# Cache all the Laravel and Composer entities
php artisan route:cache
php artisan optimize
php artisan config:cache
composer dump-autoload --optimize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment