We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e1783dd + b072fe0 commit a687345Copy full SHA for a687345
src/Builder.php
@@ -4,6 +4,8 @@
4
* This file is inspired by Builder from Laravel ChartJS - Brian Faust
5
*/
6
7
+use Illuminate\Support\Arr;
8
+
9
namespace Fx3costa\LaravelChartJs;
10
11
class Builder
@@ -163,7 +165,7 @@ public function render()
163
165
164
166
private function get($key)
167
{
- return array_get($this->charts[$this->name], $key);
168
+ return Arr::get($this->charts[$this->name], $key);
169
}
170
171
/**
@@ -174,7 +176,8 @@ private function get($key)
174
176
175
177
private function set($key, $value)
178
- array_set($this->charts[$this->name], $key, $value);
179
+ Arr::set($this->charts[$this->name], $key, $value);
180
181
return $this;
182
183
0 commit comments