Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ The `whereRaw` and `orWhereRaw` methods can be used to inject a raw `where` clau
->whereRaw('price > IF(state = "TX", ?, 100)', [200])
->get();

> {note} `whereRaw` with OR clause cannot use [`SoftDeletes`](/docs/{{version}}/eloquent#soft-deleting) trait safely. If you use OR clause in `whereRaw`, you should be either using SQL Parentheses in `whereRaw` or using `orWhere` instead of `whereRaw`.

<a name="havingraw-orhavingraw"></a>
#### `havingRaw / orHavingRaw`

Expand Down