Laravel 5 – Clear Cache in Shared Hosting Server
To clear the cache in Laravel 5, you can use the php artisan cache:clear
command. This command will clear the application cache.
You can run this command using the following steps:
- Connect to your server using a terminal or command prompt.
- Navigate to the root directory of your Laravel application.
- Run the
php artisan cache:clear
command.
This should clear the cache for your Laravel application. If you are unable to run the php artisan
command due to permissions issues, you can try using the php artisan cache:clear --force
option to force the command to run.
Keep in mind that the cache:clear command will only work if you have the PHP Artisan command line tool installed on your server.