Answers for "delete cache data from artisan command"

PHP
22

laravel artisan clear cache

//Updated Dec 2020
//laravel artisan clear cache 
php artisan view:clear 
php artisan cache:clear
php artisan route:clear
php artisan config:clear
Posted by: Guest on December-12-2020
1

artisan clear cache

before change:
php artisan cache:clear
php artisan config:clear
php artisan route:clear
after change:
php artisan config:cache
php artisan route:cache
php artisan optimize
Posted by: Guest on April-26-2021
0

how to manually remove cache in laravel

//You can call an Artisan command outside the CLI.

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

Code answers related to "delete cache data from artisan command"

Browse Popular Code Answers by Language