Guide to improve speed & performance of your Laravel Site

Poovarasu
1 min readJul 2, 2021

Making a fantastic website or web application using Laravel is becoming increasingly popular as the Laravel Framework grows in popularity. Because Laravel is not a CMS like WordPress, Drupal, or Zoomla, so we can’t obtain ready-made plugins to improve our application in a few clicks, but it does come with a lot of speed optimization capabilities out of the box to help you speed up your website or web application. It’s for you, if you’re looking to speed up your Laravel website. In this post, I’ll walk you through few a steps to improve the speed and performance of your Laravel website.

Steps to improve performance

  • HTML minification
  • Caching (Route, Config, Query Caching)
  • Bundle & Minify CSS/Js
  • Optimize images
  • Use eager loading wherever possible
  • htaccess optimization
  • Faster web hosting server
  • Use a CDN
  • Get rid of any packages that aren’t needed or wanted
  • Use the latest version of PHP / Laravel
  • Make use of the queues
  • Remove Unused Service
  • Classmap Optimization
  • Composer Optimize Autoload
  • JIT Compiler
  • Precompile Assets
  • Use APM to analyze & optimize your site…..

--

--

Poovarasu

Senior PHP/Python Developer @ Mallow Technologies | Laravel & Django | Tech Enthusiast | Code Wizard | Forward-Thinking Techie