diff --git a/CHANGELOG.md b/CHANGELOG.md index f7cea36..e520a3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `glorand/laravel-model-settings` will be documented in this file +## 3.5.3 - 2019-12-11 +### Fix +- https://github.com/glorand/laravel-model-settings/issues/36 + ## 3.5.2 - 2019-12-05 ### Fix - https://github.com/glorand/laravel-model-settings/issues/33 diff --git a/README.md b/README.md index b2096ab..a3161c6 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,8 @@ Scrutinizer Code Coverage +
+

The package requires PHP 7.1.3+ and follows the FIG standards PSR-1, PSR-2 and PSR-4 diff --git a/src/Traits/HasSettingsTable.php b/src/Traits/HasSettingsTable.php index b3750a9..39b2e10 100644 --- a/src/Traits/HasSettingsTable.php +++ b/src/Traits/HasSettingsTable.php @@ -61,7 +61,7 @@ public function modelSettings(): MorphOne public function getSettingsCacheKey(): string { - return config('model_settings.settings_table_cache_prefix') . $this->getTable() . '::' . $this->id; + return config('model_settings.settings_table_cache_prefix') . $this->getTable() . '::' . $this->getKey(); } abstract public function getTable();