mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Decimal columns as string in Models (#948)
* Decimal columns as string in Models To follow Eloquent casts * update tests for decimals
This commit is contained in:
@@ -390,6 +390,7 @@ class ModelsCommand extends Command
|
||||
case 'guid':
|
||||
case 'datetimetz':
|
||||
case 'datetime':
|
||||
case 'decimal':
|
||||
$type = 'string';
|
||||
break;
|
||||
case 'integer':
|
||||
@@ -408,7 +409,6 @@ class ModelsCommand extends Command
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'decimal':
|
||||
case 'float':
|
||||
$type = 'float';
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user