Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

zakariaarrid's avatar

How do delete cached Laravel config file manually

Hi, i would know if we could delete cache manually without command "php artisan config:clear"

0 likes
2 replies
tykus's avatar

The cached config path is available from the Application container:

app()->getCachedConfigPath();

You can delete the result of that expression, e.g. bootstrap/cache/config.php

Please or to participate in this conversation.