We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
numeric
decimal
1 parent 643329d commit ecbe09eCopy full SHA for ecbe09e
src/Console/ModelsCommand.php
@@ -381,6 +381,8 @@ public function castPropertiesType($model)
381
$realType = 'bool';
382
break;
383
case 'decimal':
384
+ $realType = 'numeric';
385
+ break;
386
case 'string':
387
case 'hashed':
388
$realType = 'string';
tests/Console/ModelsCommand/SimpleCasts/__snapshots__/Test__test__1.php
@@ -14,7 +14,7 @@
14
* @property float $cast_to_real
15
* @property float $cast_to_float
16
* @property float $cast_to_double
17
- * @property string $cast_to_decimal
+ * @property numeric $cast_to_decimal
18
* @property string $cast_to_string
19
* @property bool $cast_to_bool
20
* @property bool $cast_to_boolean
0 commit comments