File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to ` glorand/laravel-model-settings ` will be documented in this file
4
4
5
+ ## 4.4.1 - 2021-11-13
6
+ ### Fix
7
+ - fix validation variable name
8
+
5
9
## 4.4.0 - 2021-11-01
6
10
### Added
7
11
- Validation system for settings data
Original file line number Diff line number Diff line change 13
13
class TableSettingsManager extends AbstractSettingsManager
14
14
{
15
15
/**
16
- * @param array $settings
16
+ * @param array $settings
17
17
* @return \Glorand\Model\Settings\Contracts\SettingsManagerContract
18
18
* @throws \Exception
19
+ * @SuppressWarnings(PHPMD.ElseExpression)
19
20
*/
20
21
public function apply (array $ settings = []): SettingsManagerContract
21
22
{
Original file line number Diff line number Diff line change 6
6
use Illuminate \Support \Arr ;
7
7
8
8
/**
9
- * @property array $settingRules
9
+ * @property array $settingsRules
10
10
* @property array $defaultSettings
11
+ * @SuppressWarnings(PHPMD.StaticAccess)
11
12
*/
12
13
trait HasSettings
13
14
{
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ public function setPersistSettings(bool $val = true)
105
105
*/
106
106
private function hasSettingsField ()
107
107
{
108
- return cache ::remember (
108
+ return Cache ::remember (
109
109
config ('model_settings.settings_table_cache_prefix ' ) . '::has_field ' ,
110
110
now ()->addDays (1 ),
111
111
function () {
You can’t perform that action at this time.
0 commit comments