Answers for "how to add whereraw in laravel"

PHP
0

laravel whereRaw

use Illuminate\Support\Facades\DB;

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

$users = DB::table('users')
            ->whereNull('last_name')
            ->union($first)
            ->get();
Posted by: Guest on March-14-2021

Browse Popular Code Answers by Language