mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-17 17:47:13 +00:00
Fix type of hased model property (#1579)
* set hashed properity as string * add to changelog * add test
This commit is contained in:
@@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
|
||||
--------------
|
||||
|
||||
### Fixed
|
||||
- Fix type of hashed model property to `string`
|
||||
|
||||
### Changed
|
||||
|
||||
|
||||
@@ -382,6 +382,7 @@ class ModelsCommand extends Command
|
||||
break;
|
||||
case 'decimal':
|
||||
case 'string':
|
||||
case 'hashed':
|
||||
$realType = 'string';
|
||||
break;
|
||||
case 'array':
|
||||
|
||||
@@ -39,5 +39,6 @@ class SimpleCast extends Model
|
||||
'cast_to_encrypted_collection' => 'encrypted:collection',
|
||||
'cast_to_encrypted_json' => 'encrypted:json',
|
||||
'cast_to_encrypted_object' => 'encrypted:object',
|
||||
'cast_to_hashed' => 'hashed',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -105,5 +105,6 @@ class SimpleCast extends Model
|
||||
'cast_to_encrypted_collection' => 'encrypted:collection',
|
||||
'cast_to_encrypted_json' => 'encrypted:json',
|
||||
'cast_to_encrypted_object' => 'encrypted:object',
|
||||
'cast_to_hashed' => 'hashed',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user