我的Laravel是5.1.46版本
$names=DB::table('student')
->pluck('name');
dd($names);
数据库里有5条数据 ,get出来也是5条
plunk却只有1条 为什么啊?
同问题,求解!
这是执行结果
是一条数据,返回的是一维数组。如["tiansan3","lishi","zhangsan","tiansan","tiansan1","tiansan2","tiansan3","ceshi","ceshi","zhangchen","wuyijie","xingdong"]