xxxxxxxxxx
php artisan optimize:clear
//This clears all laravel caches for views,application, route,configuration
// and complied services and packages
xxxxxxxxxx
//Updated Dec 2020
//laravel artisan clear cache
php artisan view:clear
php artisan cache:clear
php artisan route:clear
php artisan config:clear
xxxxxxxxxx
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
xxxxxxxxxx
//just create below route and visit it.
use Illuminate\Support\Facades\Artisan;
Route::get('/clear-cache', function () {
Artisan::call('route:cache');
Artisan::call('config:cache');
Artisan::call('cache:clear');
Artisan::call('view:clear');
return 'clear';
});
xxxxxxxxxx
php artisan view:clear
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan optimize
xxxxxxxxxx
//Laravel 7 / 2021-01
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan optimize
xxxxxxxxxx
php artisan view:clear
php artisan cache:clear
php artisan route:clear
php artisan config:clear
xxxxxxxxxx
php artisan view:clear
php artisan config:clear
php artisan route:clear
php artisan cache:clear
php artisan clear-compiled
xxxxxxxxxx
php artisan cache:clear
php artisan view:clear
php artisan route:clear
php artisan config:clear