public function boost(Model $model)
{
$boost = 1;
$c = $this->config($model);
$option = snake_case(__FUNCTION__);
if (!is_null(array_get($c, $option))) {
$accessor = array_get($c, $option) === true ? $option : array_get($c, "{$option}.accessor");
if (!is_null($accessor)) {
$boost = $model->{$accessor} ?: 1;
}
}
return $boost;
}