Added default comment for fillable.

This commit is contained in:
李铭昕 2019-01-25 18:52:02 +08:00
parent 02d1c04007
commit e6351cc60a
2 changed files with 5 additions and 2 deletions

View File

@ -53,8 +53,6 @@ class ModelUpdateVistor extends NodeVisitorAbstract
}
$node->default = new Node\Expr\Array_($items);
$node->setDocComment(new Doc('The attributes that are mass assignable.'));
return $node;
}
}

View File

@ -161,6 +161,11 @@ class %s extends Model
*/
protected $table = \'%s\';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [];
}';