Unsupported data expression: number
$res = Db::table('student') ->field(['id'=>'number','name '=>'Name']) ->where('id','=',2) ->find();dump(is_null($res)?'Wood There is matching data':$res);
$res = Db::table('student') ->field([ 'id AS number', 'name AS name' ]) - >where('id','=',2) ->find(); Temporary solution
$res = Db::table('student')
->field([
'id AS number',
'name AS name'
])
- >where('id','=',2)
->find(); Temporary solution