I'm starting with SQL
of Laravel
I looked a lot more I did not get a response of how to AND
after where
, follow sample code to implement AND
.
SQL:
UPDATE contas
SET valor_titulo = 0,
WHERE id_contrato = 2
AND data_vencimento = '2017-05-05'
How I'm doing in Laravel:
DB::table('contas')
->where('id_contrato', $options['id_contrato'])
->update(['valor_titulo' => $attributes['valor_titulo']);
How do I put a AND
in this structure?