After I ran composer update/ install then when I run php artisan cache:clear. I got the following error.
[ErrorException] file_put_contents({application-root-path}/bootstrap/cache/services.php): failed to open stream: No such file or directory
Is there any command able to re-cache the file? As for now no matter what php artisan function that I run also will caught into the same error.
p/s: Please comment below if you need me to provide any further information for debug use.
make sure to run this command:
sudo chmod 777 -R bootstrap/cache
Just type:
cd bootstrap/
mkdir cache
cd ..
composer install
run this command
php artisan optimize --force
it will create services.php and compiled.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With