<?php
include 'core/vendor/autoload.php';
$app = include_once 'core/bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);

use Illuminate\Support\Facades\Artisan;

try {
    Artisan::call('view:clear');
    Artisan::call('cache:clear');
    echo "Views and Cache cleared successfully!";
} catch (\Exception $e) {
    echo "Error: " . $e->getMessage();
}
