Laravel 13 · Testing and cache

Cache configuration for deployment

Combine configuration files into a cached file for production.

php artisan config:cache

Caution: After caching configuration, access environment values through config files rather than calling env() elsewhere.

Official Laravel 13 documentation

More testing and cache commands

All testing and cache commands · Laravel 13 cheatsheet

Was this page helpful?