Skip to content
Discussion options

You must be logged in to vote

config:cache (often via artisan optimize) bakes the entire config into one cached file. If anything it references is wrong at cache time — a path that no longer exists, a deleted directory, a bad env read — every request boots from that broken snapshot and 500s site-wide. Run php artisan config:clear (and avoid blanket optimize in fragile deploy setups; clear individual caches instead).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kevinchamplin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant