A
Laravel

Optimasi Laravel

Checklist optimasi performa Laravel: config cache, queue, Octane/FrankenPHP, dan query.

#Laravel#Performance#PHP

Production checklist

php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan event:cache
composer install --no-dev --optimize-autoloader

Queue & async

Pindahkan pekerjaan berat (email, report, export) ke queue worker.

OPcache & server

  • Aktifkan OPcache
  • Pertimbangkan FrankenPHP atau Laravel Octane untuk high throughput
  • Gunakan Redis untuk cache, session, dan queue

Database

  • Eager load relasi
  • Index kolom filter
  • Hindari N+1 dan SELECT *