We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 732c71f commit a70dbe8Copy full SHA for a70dbe8
src/Facades/DB.php
@@ -44,6 +44,18 @@ public static function connection(): \PDO
44
return Connect::connection();
45
}
46
47
+ /**
48
+ * Allows for the execution of raw SQL
49
+ *
50
+ * @param string $sql
51
52
+ * @return array|false
53
+ */
54
+ public static function query(string $sql): array|false
55
+ {
56
+ return Connect::connection()->query(trim($sql))->fetchAll(\PDO::FETCH_ASSOC);
57
+ }
58
+
59
/**
60
* Returns a query builder instance
61
*
0 commit comments