Answers for "laravel 8 clear all cache using codes"

PHP
15

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
2

delete cache laravel

//Borra la cache de laravel: Solo copia y pega.
php artisan config:cache &&
php artisan route:clear &&  
php artisan view:clear && 
php artisan config:clear &&
php artisan cache:clear && 
php artisan clear-compiled
Posted by: Guest on March-29-2021
1

clear cache without using composer in laravel 8

Route::get('/clear-cache', function() {
    $exitCode = Artisan::call('cache:clear');
    // return what you want
});
Posted by: Guest on January-10-2021

Browse Popular Code Answers by Language