$this->getMoosun(), 'labels' => [ 'Male' => "މާލެ", 'Hanimadhoo' => "ހަނިމާދޫ", 'Kahdhoo' => "ކައްދޫ", 'Kaadehdhoo' => "ކާޑެއްދޫ", 'Gan' => "ގަން" ], 'satellite_image' => $this->getSatelliteImage() ]); } protected function getSatelliteImage() { return Cache::remember('weather.maldives.satellite', 3600, function () { $image = new ImgScraper; return $image->satellite_image; }); } protected function getMoosun() { $data = Cache::remember('weather.maldives', 3600, function () { $data = []; foreach ($this->stations as $station) { $rp = new MoosunMv($station); $data[] = $rp; } return $data; }); return $data; } }