Added reactiveKey. Updated README
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
namespace Asantibanez\LivewireCharts\Models;
|
||||
|
||||
use Ramsey\Uuid\Uuid;
|
||||
|
||||
/**
|
||||
* Class ColumnChartModel
|
||||
* @package Asantibanez\LivewireCharts\Models
|
||||
@@ -96,4 +98,9 @@ class ColumnChartModel
|
||||
$this->data = collect(data_get($array, 'data', []));
|
||||
}
|
||||
|
||||
public function reactiveKey()
|
||||
{
|
||||
return md5(json_encode($this->toArray()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -107,4 +107,8 @@ class LineChartModel
|
||||
$this->markers = collect(data_get($array, 'markers', []));
|
||||
}
|
||||
|
||||
public function reactiveKey()
|
||||
{
|
||||
return md5(json_encode($this->toArray()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,4 +96,8 @@ class PieChartModel
|
||||
$this->data = collect(data_get($array, 'data', []));
|
||||
}
|
||||
|
||||
public function reactiveKey()
|
||||
{
|
||||
return md5(json_encode($this->toArray()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user