From b072fe098bc37899cf3bff9321351109ac2c1239 Mon Sep 17 00:00:00 2001 From: Brian Wells Date: Thu, 10 Oct 2019 08:42:09 +1100 Subject: [PATCH] Update Builder.php --- src/Builder.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Builder.php b/src/Builder.php index e3f0382..d78d6a0 100644 --- a/src/Builder.php +++ b/src/Builder.php @@ -4,6 +4,8 @@ * This file is inspired by Builder from Laravel ChartJS - Brian Faust */ +use Illuminate\Support\Arr; + namespace Fx3costa\LaravelChartJs; class Builder @@ -163,7 +165,7 @@ public function render() */ private function get($key) { - return array_get($this->charts[$this->name], $key); + return Arr::get($this->charts[$this->name], $key); } /** @@ -174,7 +176,8 @@ private function get($key) */ private function set($key, $value) { - array_set($this->charts[$this->name], $key, $value); + Arr::set($this->charts[$this->name], $key, $value); + return $this; } }