Laravel打印sql
$link_popular_record_false = Student::whereNotIn('id',$temp_link_popular)
->whereIn('id',$rand_arr)
->limit($limit-$link_count)
->get();
//打印写法故意写错select
$link_popular_record_false = Student::whereNotIn('id',$temp_link_popular)
->select('asdasd')
->whereIn('id',$rand_arr)
->limit($limit-$link_count)
->get();
写的真不错解决了,一直困扰我的问题!楼主大哥牛逼!
谢谢