+ * Gets a public facing url for an image or location at the given path.
+ */
+ public static function getPublicUrl(string $filePath): string
+ {
+ return static::getPublicBaseUrl() . '/' . ltrim($filePath, '/');
+ }
+
+ /**
+ * Get the public base URL used for images.
+ * Will not include any path element of the image file, just the base part
+ * from where the path is then expected to start from.