laravel clear cache
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
laravel clear cache
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
clear laravel cache
php artisan view:clear
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan optimize
why the laravel project have many cache
1 _ go to app/console/Kernel.php
2 _ do everything that you want in schedule like this :
protected function schedule(Schedule $schedule)
{
$schedule->call(function () {
DB::table('recent_users')->delete();
})->daily();
}
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
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us