rizky-dhani/laravel-perf-optimize icon
public
Published on 5/15/2025
Laravel Performance Optimization

Performance optimization prompts for Laravel

Prompts
Performance Optimization
Performance optimization prompts for Laravel
- Analyze the code and identify performance bottlenecks. - Optimize Eloquent queries by avoiding the N+1 problem and using appropriate relationships. - Optimize cache management with Redis, Memcached or query caching via Query Builder. - Set up queues for long-running tasks via Laravel Horizon and monitor their execution. - Propose strategies to improve the response time of Laravel APIs (response compression, efficient pagination). - Reduce asset loading time by using **Vite.js** with efficient bundling. - Ensure that assets are properly configured with `vite.config.js` and optimized for production.