From b4c8125d725002b60724ef8859f8550c10bad054 Mon Sep 17 00:00:00 2001 From: Werbeagentur AWEOS Date: Fri, 18 Oct 2019 09:40:27 +0200 Subject: [PATCH] Fixed: get path url from storage rather from http --- Plugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugin.php b/Plugin.php index 104464c..9e4e19e 100644 --- a/Plugin.php +++ b/Plugin.php @@ -1,5 +1,6 @@ map(function($fileVersion) use ($l) { - $sizes = getimagesize($l->getPathUrl($fileVersion->path)); + $sizes = getimagesize(Storage::path('media/'.$fileVersion->path)); return [$l->getPathUrl($fileVersion->path), $sizes[0], $sizes[1]]; })->sortBy(function($size) {