$users = DB::table('users')->whereRaw('id > ?', [5])->get();
$count = DB::table('orders')->whereRaw('created_at >= ?', [Carbon::now()->subMonth()])->count();In both examples, we use the whereRaw() method to write a raw SQL expression that is used as part of the query. We pass any necessary parameters to the query as an array as the second argument to the method. The illuminate.database.eloquent Builder is a part of the Eloquent ORM package library in Laravel.