<?php
require_once 'vendor/autoload.php';

$app = require_once 'bootstrap/app.php';
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();

try {
    // Test the API endpoint
    $response = app()->call('GET', '/api/customers', ['company_id' => '1', 'propid' => '1']);

    echo "Response Status: " . $response->getStatusCode() . "\n";
    echo "Response Body:\n";
    echo $response->getContent() . "\n";
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
