Skip to content

Commit

Permalink
Don't include indices in Settings::toArray() by default (#162)
Browse files Browse the repository at this point in the history
Fixes #152
  • Loading branch information
brandonkelly authored Jun 16, 2020
1 parent b345368 commit a3035e6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/models/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,24 @@ class Settings extends Model
/* @var int */
public $batch_size = 1000;

public function fields()
{
$fields = parent::fields();

// don't include indices by default
unset($fields['indices']);

return $fields;
}

public function extraFields()
{
return [
'indices',
'engines',
];
}

public function rules()
{
return [
Expand Down

0 comments on commit a3035e6

Please # to comment.