How to Solve Laravel Cache Issue on Server? 1


Laravel Cache Issue on 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 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();