How to Clear Laravel Cache From The Server?
1
How to Clear Laravel Cache From The Server
Laravel cache issue can be cleared from the server with php artisan command. But sometime issue cache issue persist and prevent displayig latest changes on laravel resource and public folder.
First, try clearing cache with php artisan command:
php artisan cache:clear
php artisan view:clear
php artisan config:clear
php artisan route:clear
If the website still showing older display due to cache issue then use the following solution:
Manually delete all .php files within bootstrap/cache.
Clear Laravel cache programmatically
Cache::flush();
cache()->flush();