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

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

// Run specific commands
$kernel->call('cache:clear');
$kernel->call('route:clear');
$kernel->call('config:clear');
$kernel->call('view:clear');

// Or run the optimize clear which does all of the above
// $kernel->call('optimize:clear');

echo "Artisan commands executed successfully!";