The Optimize Command
Learn how the optimize command speeds up Laravel.
A free course on quick Laravel performance wins
you can implement right now.
There are some super common reasons your Laravel app might be slow.
This course shows you how to avoid speed issues with simple changes you can implement immediately.
Built-in Tools
We cover some built-in caches that Laravel provides (and how they work) to help speed things up in production.
Querying the Database
How you query the database is especially important. We cover avoiding the n+1 problem and how to handle queries that return lots of data.
Database Indexing
Adding indexes to your database is one of the most effective performance tools you can use. See how to create them here.
Object Caching
Using a object cache such as redis can help us avoid making expensive database queries on every page request. See how I implement caching in-code!
Learn how the optimize command speeds up Laravel.
Use the route cache to skip route compilation on each request.
Use the config cache to reduce configuration parsing & see its caveats.
Use eager loading and avoid the dreaded n+1 query problem.
Reduce memory usage on queries returning lots of data.
See how chunking by ID is much faster on large data sets.
We cover the sample application and the queries it makes.
We cover what a database index is & show creating a basic index.
We show how to improve our app's slow queries with indexes.
We discuss and configure object caching.
We add a naive implementation of caching.
We use the Decorator pattern to add caching to our app.
We discuss ways to reduce memory usage in Redis.