Answers for "clear cache in laravel without artisan"

PHP
14

laravel clear cache

php artisan cache:clear
php artisan route:clear
php artisan config:clear 
php artisan view:clear
Posted by: Guest on March-30-2020
13

clear all laravel cache

/**[SAFE] Clears all cache with 1 line!**/ 
php artisan route:clear &&  
php artisan view:clear && 
php artisan config:clear &&
php artisan cache:clear && 
php artisan clear-compiled
Posted by: Guest on October-27-2020
0

clear cache in laravel without artisan

Route::get('/clear-cache', function() {
     $exitCode = Artisan::call('cache:clear');
     return 'Application cache cleared';
 });
Posted by: Guest on July-13-2020
0

clear cache in laravel without artisan

Route::get('/route-cache', function() {
     $exitCode = Artisan::call('route:cache');
     return 'Routes cache cleared';
 });
Posted by: Guest on July-13-2020

Code answers related to "clear cache in laravel without artisan"

Browse Popular Code Answers by Language