Writing like this doesn’t work
field(['id'=>'Number','name'=>'Name','url'=>'Website'])
You can write it like this
->field(['id'=>'m','name'=>'n','url'=>'u' ])
The SQL statement is like this
SELECT `id` AS `m`,`name` AS `n`,`url` AS `u` FROM `websites` WHERE `id` = 4 LIMIT 1
天蓬老师2019-04-08 22:00:29
After ThinKPHP5.1.20, the use of Chinese aliases is no longer supported, please pay attention