laravel中db获取某个数据的具体字段值:

$helpfriend = DB::connection('luckyrecord')->table($luckyrecord)->where('id', $luckyrecordid)->select('helpfriend')->get();
dd($helpfriend[0]->helpfriend);

  

posted @ 2018-03-26 18:01  生如逆旅,一苇以航  阅读(10765)  评论(0编辑  收藏  举报