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

far1han's avatar

The bootstrap/cache directory must be present and writable

getting error while test locally @Sti3bas can you please look in to this

0 likes
9 replies
Snapey's avatar

The error is pretty self explanatory?

far1han's avatar

all seems to be okay with bootstrap/cache dir

amitsolanki24_'s avatar

@far1han set read and write permission to bootstrap directory And then run php artisan config:clear And

php artisan optimize:clear

denvit's avatar

Change write permissions for cache dir to 755.

munazzil's avatar

Can you type below command in your CMD,

      php artisan cache:clear
2 likes
Yorhmzy's avatar

Try this: sudo chmod -R ugo+rw bootstrap/cache/

2 likes
Danny971's avatar

I am having the same error but it happen when i am deploying it to GCP app engine

Please or to participate in this conversation.