$re = DB::table('users') -> first(); 注意,这里取到的是对象 而使用get() 查到的是个数组。 $re = DB::table('users') -> get(); 容易弄错,小坑,记录一下