DB::table()->get()方式如何得到数组而不是对象?
试看看?
$result = DB::table()->get();
$result = $result->toArray();
或者
DB::table()->get()->toArray();
DB::table()->get()方式如何得到数组而不是对象?
试看看?
$result = DB::table()->get();
$result = $result->toArray();
或者
DB::table()->get()->toArray();