$value)if(preg_match('/^(APP_|DB_|SGF_|SESSION_|CACHE_|QUEUE_|BCRYPT_)/',$key)){putenv($key.'='.$value);$_ENV[$key]=$value;$_SERVER[$key]=$value;} foreach(['APP_BASE_PATH'=>$repo,'APP_CONFIG_CACHE'=>$proof.'/config.php','APP_ROUTES_CACHE'=>$proof.'/routes.php','APP_SERVICES_CACHE'=>$proof.'/services.php','APP_PACKAGES_CACHE'=>$proof.'/packages.php','SESSION_DRIVER'=>'array','CACHE_STORE'=>'array'] as $key=>$value){putenv($key.'='.$value);$_ENV[$key]=$value;$_SERVER[$key]=$value;} require $repo.'/vendor/autoload.php';$app=require $repo.'/bootstrap/app.php';$app->addAbsoluteCachePathPrefix('C:');$app->useStoragePath($proof.'/storage');foreach(['logs','framework/views','framework/sessions','framework/cache/data'] as $dir)mkdir($proof.'/storage/'.$dir,0700,true); $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();$host=DB::connection(); if(($argv[1]??null)==='--inspect'){echo json_encode(['tables'=>array_column($host->select("SELECT tablename FROM pg_tables WHERE schemaname='public' ORDER BY tablename"),'tablename'),'a_client_columns'=>$host->getSchemaBuilder()->getColumns('a_clients')],JSON_PRETTY_PRINT).PHP_EOL;exit;}