Shared Hosting is very wired Hosting I have ever used. There are so many restrictions to using Shared Hosting that's why we use https://bit.ly/3xJk5k8. If you want to clear cache in Laravel which is hosted on Shared Hosting then this article will help you to clear cache in a shared hosting server.

Laravel - Clear Cache in Shared Hosting Server using Web Routes //Clear route cache Route::get('/route-cache', function() { \Artisan::call('route:cache'); return 'Routes cache cleared'; }); //Clear config cache Route::get('/config-cache', function() { \Artisan::call('config:cache'); return 'Config cache cleared'; }); // Clear application cache Route::get('/clear-cache', function() { \Artisan::call('cache:clear'); return 'Application cache cleared'; }); // Clear view cache Route::get('/view-clear', function() { \Artisan::call('view:clear'); return 'View cache cleared'; }); // Clear cache using reoptimized class Route::get('/optimize-clear', function() { \Artisan::call('optimize:clear'); return 'View cache cleared'; }); Enter fullscreen mode
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners