Skip to content

Commit 81a8a83

Browse files
authored
Add raw method to Db class for query expressions
1 parent 943c5a0 commit 81a8a83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/support/Db.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
use Closure;
1818
use Webman\Database\Manager;
19+
use Illuminate\Contracts\Database\Query\Expression;
1920

2021
require_once __DIR__ . '/../Initializer.php';
2122

@@ -31,8 +32,9 @@
3132
* @method static void beginTransaction()
3233
* @method static void rollBack($toLevel = null)
3334
* @method static void commit()
35+
* @method static Expression raw(mixed $value)
3436
*/
3537
class Db extends Manager
3638
{
3739

38-
}
40+
}

0 commit comments

Comments
 (0)