mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-03 20:27:59 +08:00
Added default comment for fillable.
This commit is contained in:
parent
02d1c04007
commit
e6351cc60a
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -161,6 +161,11 @@ class %s extends Model
|
||||
*/
|
||||
protected $table = \'%s\';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [];
|
||||
}';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user