diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index d8e3996..f631342 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -352,9 +352,19 @@ class ModelsCommand extends Command case 'integer': case 'bigint': case 'smallint': - case 'boolean': $type = 'integer'; break; + case 'boolean': + switch (config('database.default')) { + case 'sqlite': + case 'mysql': + $type = 'integer'; + break; + default: + $type = 'boolean'; + break; + } + break; case 'decimal': case 'float': $type = 'float';