mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Use Illuminate\Support\Carbon instead of Carbon\Carbon
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user