Add support for Carbon serialization options (#1324)

* Add Carbon serialization option handling

* Tests Added

* Add changelog

* Spellcheck
This commit is contained in:
FLeudts
2022-03-04 09:12:42 +01:00
committed by GitHub
parent ddb74fb5c8
commit 6041681495
5 changed files with 17 additions and 0 deletions
+4
View File
@@ -362,6 +362,10 @@ class ModelsCommand extends Command
$type = 'decimal';
} elseif (Str::startsWith($type, 'custom_datetime:')) {
$type = 'date';
} elseif (Str::startsWith($type, 'date:')) {
$type = 'date';
} elseif (Str::startsWith($type, 'datetime:')) {
$type = 'date';
} elseif (Str::startsWith($type, 'immutable_custom_datetime:')) {
$type = 'immutable_date';
} elseif (Str::startsWith($type, 'encrypted:')) {