mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
add immutable_date/time:* casts (#1380)
* add immutable_date/time:* casts * fix style * Update CHANGELOG.md --------- Co-authored-by: Barry vd. Heuvel <[email protected]> Co-authored-by: Barry vd. Heuvel <[email protected]>
This commit is contained in:
co-authored by
Barry vd. Heuvel
Barry vd. Heuvel
parent
9f97f7cd5f
commit
b70a9f5048
@@ -369,6 +369,10 @@ class ModelsCommand extends Command
|
||||
$type = 'date';
|
||||
} elseif (Str::startsWith($type, 'immutable_custom_datetime:')) {
|
||||
$type = 'immutable_date';
|
||||
} elseif (Str::startsWith($type, 'immutable_date:')) {
|
||||
$type = 'immutable_date';
|
||||
} elseif (Str::startsWith($type, 'immutable_datetime:')) {
|
||||
$type = 'immutable_datetime';
|
||||
} elseif (Str::startsWith($type, 'encrypted:')) {
|
||||
$type = Str::after($type, ':');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user