Merge pull request #600 from mike-grinspan/patch-1

Use Illuminate\Support\Carbon instead of Carbon\Carbon
This commit is contained in:
Barry vd. Heuvel
2018-05-07 11:44:40 +02:00
committed by GitHub
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -283,7 +283,7 @@ class ModelsCommand extends Command
break;
case 'date':
case 'datetime':
$realType = '\Carbon\Carbon';
$realType = '\Illuminate\Support\Carbon';
break;
case 'collection':
$realType = '\Illuminate\Support\Collection';
@@ -347,7 +347,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) {