Skip to content

Commit

Permalink
Updates (#95)
Browse files Browse the repository at this point in the history
* Updates

* update changelog
  • Loading branch information
glorand authored Nov 12, 2021
1 parent 20dfb02 commit da46f68
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
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

## 4.4.1 - 2021-11-13
### Fix
- fix validation variable name

## 4.4.0 - 2021-11-01
### Added
- Validation system for settings data
Expand Down
3 changes: 2 additions & 1 deletion src/Managers/TableSettingsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
class TableSettingsManager extends AbstractSettingsManager
{
/**
* @param array $settings
* @param array $settings
* @return \Glorand\Model\Settings\Contracts\SettingsManagerContract
* @throws \Exception
* @SuppressWarnings(PHPMD.ElseExpression)
*/
public function apply(array $settings = []): SettingsManagerContract
{
Expand Down
3 changes: 2 additions & 1 deletion src/Traits/HasSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
use Illuminate\Support\Arr;

/**
* @property array $settingRules
* @property array $settingsRules
* @property array $defaultSettings
* @SuppressWarnings(PHPMD.StaticAccess)
*/
trait HasSettings
{
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HasSettingsField.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function setPersistSettings(bool $val = true)
*/
private function hasSettingsField()
{
return cache::remember(
return Cache::remember(
config('model_settings.settings_table_cache_prefix') . '::has_field',
now()->addDays(1),
function () {
Expand Down

0 comments on commit da46f68

Please sign in to comment.