make(Illuminate\Contracts\Console\Kernel::class);
echo "
Laravel Cache Repair
";
echo "";
try {
$kernel->call('config:clear');
echo "- ✅ Config cache cleared
";
$kernel->call('route:clear');
echo "- ✅ Route cache cleared
";
$kernel->call('view:clear');
echo "- ✅ View cache cleared
";
$kernel->call('cache:clear');
echo "- ✅ Application cache cleared
";
echo "
";
echo "Success!
";
echo "Your site should now be working. Please DELETE this file (public/repair-cache.php) immediately.
";
} catch (Exception $e) {
echo "";
echo "Error:
";
echo "" . $e->getMessage() . "
";
}