Skip to content

Commit

Permalink
Update HasSettingsTable.php (#34)
Browse files Browse the repository at this point in the history
Fix #33
  • Loading branch information
glorand authored Dec 4, 2019
1 parent 213c2c4 commit a1eea2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `glorand/laravel-model-settings` will be documented in this file

## 3.5.2 - 2019-12-05
### Fix
- https://github.com/glorand/laravel-model-settings/issues/33

## 3.5.1 - 2019-11-29
### Fix
- Check column settings exists directly on the database table
Expand Down
4 changes: 3 additions & 1 deletion src/Traits/HasSettingsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public function modelSettings(): MorphOne

public function getSettingsCacheKey(): string
{
return config('model_settings.settings_table_cache_prefix') . $this->id;
return config('model_settings.settings_table_cache_prefix') . $this->getTable() . '::' . $this->id;
}

abstract public function getTable();
}

0 comments on commit a1eea2b

Please sign in to comment.