Skip to content

Commit 0788453

Browse files
[9.x] add a small tip on how to clear the config cache (#8758)
* add a small tip on how to clear the config cache * Update configuration.md --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent c628618 commit 0788453

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

configuration.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ To give your application a speed boost, you should cache all of your configurati
197197

198198
You should typically run the `php artisan config:cache` command as part of your production deployment process. The command should not be run during local development as configuration options will frequently need to be changed during the course of your application's development.
199199

200+
The `config:clear` command may be used to purge the cached configuration:
201+
202+
```shell
203+
php artisan config:clear
204+
```
205+
200206
> **Warning**
201207
> If you execute the `config:cache` command during your deployment process, you should be sure that you are only calling the `env` function from within your configuration files. Once the configuration has been cached, the `.env` file will not be loaded; therefore, the `env` function will only return external, system level environment variables.
202208

0 commit comments

Comments
 (0)