Laravel Artisan General Command: The config:cache Command

December 7, 2016 —John Koster

The config:cache command can be used to create a cache file for the applications configuration files. This cache file will improve the performance when loading the configuration values. This command will first clear any existing configuration cache before regenerated the new cache.

The following examples show how to call the config:cache command:

1php artisan config:cache

By default, the configuration cache file can be found at bootstrap/cache/config.php.

Some absolutely amazing

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.