Shift with red gradient lettering
Loading navigation...

"Fast Laravel" Shift

The "Fast Laravel" Shift configures your Laravel application for caching responses.

Notably by registering a separate static middleware group. You may then register routes within this middleware group to cache their response.

This configuration is covered in the Fast Laravel video course, as well as other strategies for making pages within your Laravel application cacheable.

Screenshot of a pull request with automated changes from the Fast Laravel Shift

Requirements

The "Fast Laravel" Shift requires a Laravel application running Laravel 12.0 or higher, with a streamlined Laravel application structure and configuration. If you do not meet these requirements, you may run the necessary Shifts to first modernize your application.

Automation

The "Fast Laravel" Shift automates the following changes:

  • Registers a new static middleware group.
  • Creates a separate routes file.
  • Adds customizable cache middleware.
  • Installs nexxai/laravel-cfcache.

Disclaimer

Caching responses has implications. Be sure to understand the implications before using the configuration provided by the "Fast Laravel" Shift. If you are not familiar with caching responses, watch the Fast Laravel video course. It covers using this exact configuration.