模型中设置类型转换:
protected $type=[
'num'=>'integer',
'create_at'=>'datetime:Y-m-d'
.
.
.
]
模型中设置自动完成:
protected $auto=[]
protected $insert=['num'=>1]//例
模型中设置类型转换:
protected $type=[
'num'=>'integer',
'create_at'=>'datetime:Y-m-d'
.
.
.
]
模型中设置自动完成:
protected $auto=[]
protected $insert=['num'=>1]//例