10 Laravel Performance Tips That Actually Move the Needle
By Super Admin · Apr 28, 2026
Performance is rarely about one big optimisation. It's a collection of small, careful choices. Here are ten that consistently produce measurable wins.
1. Cache config and routes in production
Run php artisan config:cache and php artisan route:cache in your deploy script. This alone can shave 30–80 ms off every request.
2. Use eager loading
The N+1 problem is the single most common cause of slow Laravel pages. Always pair model relationships with ->with(...).
3. Index your foreign keys
Migrations don't add an index automatically when you use foreignId(). Add it explicitly for any column you filter by.
4. Reach for the queue
Email sending, image processing, third-party API calls — anything that doesn't need to block the response should run on a queue worker.
5. Cache expensive queries
Wrap dashboard widgets and homepage queries in Cache::remember() with a sensible TTL. Bust the cache on the relevant model save event.