The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

Fast Laravel Course Launch

Last updated on by

Fast Laravel Course Launch image

Last July, I went on a quest to optimize laravelshift.com using Cloudflare services. I had been meaning to look into Cloudflare for a while. I just kept putting it off.

Being a web developer for over 25 years, I knew if I wanted to make my Laravel app fast, I should focus on page caching. Processing a request will always be slow. No matter how much you optimize the code. No matter how much you tune your database queries. The fastest way to process a request is to not process it at all.

This brought me back to Cloudflare, as caching responses is one of their main services. It's available on the free plan. And, even better, they don't just cache the response, they cache it at the edge. So, the response is even faster because it's served from a server geographically closer to you.

Unfortunately, when I finally researched caching pages for a Laravel app with Cloudflare, nothing worked. Well, one worked — but it was doing it all wrong. Initially I shared my findings in a tweet. When this received a (relatively) high number of views, I wrote an article for Laravel News.

Using this static middleware group provided a much better foundation. It explicitly registers cacheable routes and limits any footgun scenarios. But I still needed to make pages cacheable. While some pages are immediately cacheable (e.g. FAQ, Privacy Policy, etc), others need tiny refactors to make them cacheable.

As I continued on my quest to cache as many pages as possible, I used a number of different strategies. I continued to tweet my findings, write more Laravel news articles, even livestream. Yet it was clear I had a lot of content.

I haven't made a video course in a while. My last was Confident Laravel on writing tests for Laravel apps. I really only make courses when I feel there's a knowledge gap. This time, I felt there was a gap optimizing your Laravel app with Cloudflare services. So, I filled it with a new video course - Fast Laravel.

I went back and reviewed all the changes I made for laravelshift.com to take it from 6% cached to 99% cached. I organized them into this five-lesson video course, where we'll:

  • Understand how caching works and how we'll use Cloudflare
  • Optimize and cache assets that do not change
  • Configure your Laravel app for caching pages
  • Learn quick refactors to make pages cacheable
  • Push even further with advanced caching strategies

By the end of the course, you'll have everything you need to improve the response times for your Laravel app — all using free services from Cloudflare.

I've already had multiple viewers tell me how much they learned from the course. One viewer reported updating their landing page to respond in 40ms! So, if you're looking to make your Laravel app fast, check out Fast Laravel.

What this course is not…

This course is not about code or database optimization. While those are ways to speed up your Laravel app, the course focuses specifically on caching responses with Cloudflare. As noted above, caching responses will always outperform lower-level optimizations.

Filed in:
Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

image
Laravel Code Review

Get expert guidance in a few days with a Laravel code review

Visit Laravel Code Review
Curotec logo

Curotec

World class Laravel experts with GenAI dev skills. LATAM-based, embedded engineers that ship fast, communicate clearly, and elevate your product. No bloat, no BS.

Curotec
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $3200/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Cut PHP Code Review Time & Bugs into Half with CodeRabbit logo

Cut PHP Code Review Time & Bugs into Half with CodeRabbit

CodeRabbit is an AI-powered code review tool that specializes in PHP and Laravel, running PHPStan and offering automated PR analysis, security checks, and custom review features while remaining free for open-source projects.

Cut PHP Code Review Time & Bugs into Half with CodeRabbit
Get expert guidance in a few days with a Laravel code review logo

Get expert guidance in a few days with a Laravel code review

Expert code review! Get clear, practical feedback from two Laravel devs with 10+ years of experience helping teams build better apps.

Get expert guidance in a few days with a Laravel code review
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
Lunar: Laravel E-Commerce logo

Lunar: Laravel E-Commerce

E-Commerce for Laravel. An open-source package that brings the power of modern headless e-commerce functionality to Laravel.

Lunar: Laravel E-Commerce
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit

The latest

View all →
Livewire 4 Is Dropping Next Week, and wire:transition Makes Animations Effortless image

Livewire 4 Is Dropping Next Week, and wire:transition Makes Animations Effortless

Read article
Laravel 12.45.1, 12.45.2, and 12.46.0 Released image

Laravel 12.45.1, 12.45.2, and 12.46.0 Released

Read article
"Don't Remember" Form Helper Added in Inertia.js 2.3.7 image

"Don't Remember" Form Helper Added in Inertia.js 2.3.7

Read article
Laravel News Partners With Laracon India image

Laravel News Partners With Laracon India

Read article
A new beta of Laravel Wayfinder just dropped image

A new beta of Laravel Wayfinder just dropped

Read article
Ben Bjurstrom: Laravel is the best Vibecoding stack for 2026 image

Ben Bjurstrom: Laravel is the best Vibecoding stack for 2026

Read article