Use Illuminate\Support\Carbon instead of Carbon\Carbon

This commit is contained in:
Mike
2017-12-27 17:17:00 -05:00
committed by GitHub
parent 28f0ac3781
commit df6b1b6f82
+2 -2
View File
@@ -277,7 +277,7 @@ class ModelsCommand extends Command
break;
case 'date':
case 'datetime':
$realType = '\Carbon\Carbon';
$realType = '\Illuminate\Support\Carbon';
break;
case 'collection':
$realType = '\Illuminate\Support\Collection';
@@ -337,7 +337,7 @@ class ModelsCommand extends Command
foreach ($columns as $column) {
$name = $column->getName();
if (in_array($name, $model->getDates())) {
$type = '\Carbon\Carbon';
$type = '\Illuminate\Support\Carbon';
} else {
$type = $column->getType()->getName();
switch ($type) {