查询构造器
Zodream\Database\DB
从一个数据表中获取所有行
$users = DB::table('users')->get();
从数据表中获取单行或单列
$user = DB::table('users')->where('name', 'John')->first();
获取一列的值
$titles = DB::table('roles')->pluck('title');
foreach ($titles as $title) {
echo $title;
}
12345