支持给字段设置类型自动转换,会在写入和读取的时候自动进行类型转换处理,例如: ~~~ class User extends Model { protected $type = [ 'status' => 'integer', 'score'

评论区

登录 后参与评论
× Preview