5.4 chunk 必须要使用orderBy()
echo "<pre>";
DB::table('student')->orderBy('id','desc')->chunk(1,function($students){
var_dump($students);
});
echo "<pre>";
DB::table('student')->orderBy('id','desc')->chunk(1,function($students){
var_dump($students);
});
2017-03-31