<?php
require __DIR__.'/../vendor/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php';

$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);

echo "<h2>Clearing Laravel Cache...</h2><pre>";
echo "Config clear: " . $kernel->call('config:clear') . "\n";
echo "Cache clear: " . $kernel->call('cache:clear') . "\n";
echo "Route clear: " . $kernel->call('route:clear') . "\n";
echo "View clear: " . $kernel->call('view:clear') . "\n";
echo "Optimize clear: " . $kernel->call('optimize:clear') . "\n";
echo "</pre><p><strong>Done! Delete this file now.</strong></p>";