Use the clear cache command when building projects with laravel version 5.7 or above:
php artisan cache:clear
Sometimes, the following errors are reported:
“Failed to clear cache. Make sure you have the appropriate permissions”
The reason is that there are two directories. You need to create a new directory.
mkdir -p storage/framework/cache/data
You also need to set directory permissions
chmod 777 /home/www/dir/bootstrap/cache && amp; chmod 777 /home/www/dir/bootstrap/cache/*
reference resources:
“Failed to clear cache. Make sure you have the appropriate permissions” in Laravel 5.7_ Yang level blog – CSDN blog