mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-19 18:43:12 +00:00
@@ -146,7 +146,12 @@ class ModelsCommand extends Command {
|
|||||||
if($columns){
|
if($columns){
|
||||||
foreach ($columns as $column) {
|
foreach ($columns as $column) {
|
||||||
$name = $column->getName();
|
$name = $column->getName();
|
||||||
$type = $column->getType()->getName();
|
try{
|
||||||
|
$type = $column->getType()->getName();
|
||||||
|
}catch(\Exception $e){
|
||||||
|
$type = "string";
|
||||||
|
$this->info("Could not determine type of column '$name', defaulting to string.");
|
||||||
|
}
|
||||||
switch($type){
|
switch($type){
|
||||||
case 'string':
|
case 'string':
|
||||||
case 'text':
|
case 'text':
|
||||||
|
|||||||
Reference in New Issue
Block a user