try {
$response = Http::get('https://api.openweathermap.org/data/2.5/forecast/daily?id=323786&cnt=1&lang=tr&appid=20519963f6f24c76afb6fca3cb002122');
$results= $response->json();
$sonuc=$results['list'];
foreach ($sonuc as $d)
{
$veri= $d['weather'];
}
return $veri['main'];
}
catch (\Throwable $exception)
{
return $exception;
}
gelen veriler bu şekil de sadece weather'a kadar inebildim gerisini çekmeye çalıştığım da main veya description tanımsız anahtar diyor " return $veri['main'];" bu kısım da bunu nasıl düzeltebilirimm