Skip to content

Commit

Permalink
fix: falsy default values not being filled
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler committed Oct 7, 2023
1 parent 954ca4d commit becee16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Support/FillMissingAttributeValuesFromBlueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public static function fill(array $attributes, Blueprint $blueprint): array

if ($column->get('nullable')) {
$attributes[$name] = null;
} elseif ($default = $column->get('default')) {
$attributes[$name] = $default;
} elseif ($column->get('default') !== null) {
$attributes[$name] = $column->get('default');
}
}

Expand Down

0 comments on commit becee16

Please sign in to comment.