Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SetKyarWaLar's avatar

How I can try AND in Laravel Query Builder ?

I want to query like the following

SELECT * FROM Table
WHERE Column='Value'
AND NewColumn='Value'

I don't know how to query AND in Laravel Query Builder. Can someone help me?

0 likes
2 replies
Marwelln's avatar
Level 4

Just append a new where(...) to your query. It will autmatically be AND.

Table::where('Column', Value)->where('NewColumn', Value)->get();

More details are available in the docs here.

7 likes

Please or to participate in this conversation.