Skip to content

Commit d46f264

Browse files
Update README.md
1 parent ef9942e commit d46f264

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ User::where('votes', '>', 100)
2323
// "select * from `users` where `votes` > 100 or (`name` = 'Abigail' and `votes` > 50)"
2424
```
2525

26+
## Why?
27+
`toSql()` doesn't bind values to it. Instead, it returns the raw SQL representation of the query as a string, including placeholders for any bound values.
28+
29+
In some cases, you might want to inspect the actual SQL, with the values already bound to the placeholders.
30+
2631
## Testing
2732

2833
```bash

0 commit comments

Comments
 (0)