successful()){ $result = $get->json(); Cache::put($request, $result); return $result; } return null; } public static function propertiesPerRegion() { return self::get('/region/properties'); } public static function propertiesGrowth() { return self::get('/properties/growth'); } public static function propertiesGeo() { return self::get('/properties/geo'); } public static function propertyExtractions(int $id) { return self::get("/property/{$id}/extractions"); } public static function propertyCapacities(int $id) { return self::get("/property/{$id}/capacities"); } public static function propertyBase(int $id): mixed { return self::get("/property/{$id}/base"); } public static function regionCapacities(int $id): mixed { return self::get("/region/{$id}/capacities"); } public static function propertyCapacitiesMonthly(int $id, string $date): mixed { return self::get("/property/{$id}/capacities/monthly/{$date}"); } public static function propertyCapacitiesDaily(int $id, string $date): mixed { return self::get("/property/{$id}/capacities/weekdays/{$date}"); } }