Expression de données non prise en charge : nombre
$res = Db::table('student') ->field(['id'=>'number','name'=>'name'] ) - >where('id','=',2) ->find();dump(is_null($res)?'Aucune donnée correspondante':$res);
$res = Db::table('student') ->field([ 'id AS number', 'name AS name' ]) ->where('id','=', 2) ->trouver(); Solution temporaire
$res = Db::table('student')
->field([
'id AS number',
'name AS name'
])
->where('id','=', 2)
->trouver(); Solution temporaire