Laravel Artisan General Command: The config:cache Command


John Koster

Published on December 7, 2016

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.