📜  laravel 数据库查询 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:40.890000             🧑  作者: Mango

代码示例6
use Illuminate\Support\Facades\DB;

$users = DB::select('select * from users');

foreach ($users as $user) {
    echo $user->name;
}