laravel app cache code example
Example 1: laravel clear cache
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
Example 2: 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();
}