Added reactiveKey. Updated README

This commit is contained in:
asantibanez
2020-10-19 10:29:23 -05:00
parent 23d20afd84
commit f9c05f5b4b
5 changed files with 82 additions and 5 deletions

View File

@@ -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()));
}
}