From e6351cc60ac079ffb26e1e191688c03da1b9d5de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= <715557344@qq.com> Date: Fri, 25 Jan 2019 18:52:02 +0800 Subject: [PATCH] Added default comment for fillable. --- src/database/src/Commands/Ast/ModelUpdateVistor.php | 2 -- src/database/src/Commands/ModelCommand.php | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/database/src/Commands/Ast/ModelUpdateVistor.php b/src/database/src/Commands/Ast/ModelUpdateVistor.php index 1068b14ac..414538bfe 100644 --- a/src/database/src/Commands/Ast/ModelUpdateVistor.php +++ b/src/database/src/Commands/Ast/ModelUpdateVistor.php @@ -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; } } diff --git a/src/database/src/Commands/ModelCommand.php b/src/database/src/Commands/ModelCommand.php index f8b151a43..3a4cd049b 100644 --- a/src/database/src/Commands/ModelCommand.php +++ b/src/database/src/Commands/ModelCommand.php @@ -161,6 +161,11 @@ class %s extends Model */ protected $table = \'%s\'; + /** + * The attributes that are mass assignable. + * + * @var array + */ protected $fillable = []; }';