diff --git a/src/LightboxDisplayer.php b/src/LightboxDisplayer.php index c18b405..5de926d 100644 --- a/src/LightboxDisplayer.php +++ b/src/LightboxDisplayer.php @@ -3,6 +3,7 @@ namespace Encore\Grid\Lightbox; use Encore\Admin\Admin; +use Illuminate\Support\Arr; use Encore\Admin\Grid\Displayers\AbstractDisplayer; use Illuminate\Support\Facades\Storage; @@ -43,15 +44,15 @@ public function display(array $options = []) $this->value = $this->value->toArray(); } - $server = array_get($options, 'server'); - $width = array_get($options, 'width', 200); - $height = array_get($options, 'height', 200); - $class = array_get($options, 'class', 'thumbnail'); + $server = Arr::get($options, 'server'); + $width = Arr::get($options, 'width', 200); + $height = Arr::get($options, 'height', 200); + $class = Arr::get($options, 'class', 'thumbnail'); $class = collect((array)$class)->map(function ($item) { return 'img-'. $item; })->implode(' '); - if (array_get($options, 'zooming')) { + if (Arr::get($options, 'zooming')) { $this->zooming(); }