📜  laravel whereRaw - PHP 代码示例

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

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

$first = DB::table('users')
            ->whereNull('first_name');

$users = DB::table('users')
            ->whereNull('last_name')
            ->union($first)
            ->get();