sudo php artisan cache:clear make sure you have permission www-data code example
Example: php artisan cache:clear Failed to clear cache. Make sure you have the appropiate permissions
alias larclear='php artisan cache:clear && php artisan config:cache && php artisan permission:cache-reset && php artisan config:clear && php artisan view:clear && php artisan route:clear && php artisan telescope:clear && php artisan debugbar:clear'