File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments