mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-20 11:03:09 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
800e2347a6 | ||
|
|
7549f58a30 |
@@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file.
|
|||||||
### Changed
|
### Changed
|
||||||
- Add support for multiple pivot types when using the same accessor.
|
- Add support for multiple pivot types when using the same accessor.
|
||||||
- Smarter reset, keep tags that IDE helper doesn't use
|
- Smarter reset, keep tags that IDE helper doesn't use
|
||||||
|
- Use `numeric` type on fields with `decimal` casts
|
||||||
|
|
||||||
|
|
||||||
2024-10-18, 3.2.0
|
2024-10-18, 3.2.0
|
||||||
--------------
|
--------------
|
||||||
|
|||||||
@@ -381,6 +381,8 @@ class ModelsCommand extends Command
|
|||||||
$realType = 'bool';
|
$realType = 'bool';
|
||||||
break;
|
break;
|
||||||
case 'decimal':
|
case 'decimal':
|
||||||
|
$realType = 'numeric';
|
||||||
|
break;
|
||||||
case 'string':
|
case 'string':
|
||||||
case 'hashed':
|
case 'hashed':
|
||||||
$realType = 'string';
|
$realType = 'string';
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
* @property float $cast_to_real
|
* @property float $cast_to_real
|
||||||
* @property float $cast_to_float
|
* @property float $cast_to_float
|
||||||
* @property float $cast_to_double
|
* @property float $cast_to_double
|
||||||
* @property string $cast_to_decimal
|
* @property numeric $cast_to_decimal
|
||||||
* @property string $cast_to_string
|
* @property string $cast_to_string
|
||||||
* @property bool $cast_to_bool
|
* @property bool $cast_to_bool
|
||||||
* @property bool $cast_to_boolean
|
* @property bool $cast_to_boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user