| Server IP : 80.211.21.168 / Your IP : 216.73.216.144 Web Server : Apache System : Linux alex-webdesign.it 3.10.0-1160.119.1.el7.tuxcare.els22.x86_64 #1 SMP Mon Aug 18 06:07:12 UTC 2025 x86_64 User : admin_japan ( 10003) PHP Version : 8.2.32 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/cerchijapan.it/app.valutatoreauto.it/ |
Upload File : |
<?php
require __DIR__ . '/vendor/autoload.php';
$app = require __DIR__ . '/bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();
$rows = App\Models\MarketPrice::query()
->whereNotNull('price_range')
->orderByDesc('id')
->limit(20)
->get();
foreach ($rows as $row) {
$ranges = is_array($row->price_range) ? $row->price_range : [];
$first = $ranges[0] ?? [];
echo "market_price_id={$row->id} ad_id={$row->ad_id} type=" . ($row->type_id?->value ?? $row->type_id) . PHP_EOL;
echo "compare_result=" . (($row->compare_result?->value) ?? $row->compare_result ?? 'null') . PHP_EOL;
echo "ranges_count=" . count($ranges) . PHP_EOL;
echo "first.price=" . ($first['price'] ?? 'null')
. " first.evaluated=" . ($first['evaluated'] ?? 'null')
. " first.autoscout_evaluation=" . ($first['autoscout_evaluation'] ?? 'null')
. " first.price_label=" . ($first['price_label'] ?? 'null')
. PHP_EOL;
echo str_repeat('-', 80) . PHP_EOL;
}