Skip to content

Commit

Permalink
Update Builder.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wells committed Oct 9, 2019
1 parent e1783dd commit b072fe0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* This file is inspired by Builder from Laravel ChartJS - Brian Faust
*/

use Illuminate\Support\Arr;

namespace Fx3costa\LaravelChartJs;

class Builder
Expand Down Expand Up @@ -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);
}

/**
Expand All @@ -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;
}
}

0 comments on commit b072fe0

Please sign in to comment.