Skip to content

Commit c630c82

Browse files
author
Fredrick Peter
committed
push
1 parent 1b6815d commit c630c82

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -624,17 +624,19 @@ $users->showing([
624624
- Multiple clause
625625

626626
### Raw
627-
<details><summary>Raw Usage</summary>
628-
- Allows you to use direct raw `SQL query syntax`
627+
<details><summary>Allows you to use direct raw `SQL query syntax`</summary>
629628

630-
- 1 usage
631-
```
632-
$db->table()
633-
->raw('date >= $date')
634-
->raw('NOW() > created_at')
629+
```
630+
$db->table("tb_wallet")
631+
->where('email', '[email protected]')
632+
->raw("date >= 1681178855")
633+
->raw("NOW() > created_at")
634+
->raw("YEAR(created_at) = '2022'")
635+
->limit(10)
636+
->random()
635637
->get();
636638
637-
$db->raw('DROP TABLE users')->execute();
639+
SELECT * FROM `tb_wallet` WHERE email=:email AND date >= 1681178855 AND NOW() > created_at AND YEAR(created_at) = '2022' ORDER BY RAND() LIMIT 10
638640
```
639641
</details>
640642

0 commit comments

Comments
 (0)