nested where

Hello

How I can nest the where clause, with the query builder?



82.2k

You can use andWhere:

$builder->from('Robots')
        ->where('Robots.name = "Voltron"')
        ->andWhere('Robots.type = "virtual"')