雄辩的Where子句中类似通配符的语法?

Rob*_*rax 1 laravel eloquent laravel-5 laravel-eloquent

这是我的where子句:

->where( 'post_type', '=', 'blog' )
Run Code Online (Sandbox Code Playgroud)

有没有办法用通配符替换'博客',所以它会匹配任何'post_type'?

完整查询:

$db = ( new DbSql() )->db()->getConnection();
$postsCount = $db->table( 'posts' )
                          ->where( 'status', '=', 'published' )
                          ->where( 'post_type', '=', 'blog' )
                          ->where( 'alerts', '<', Settings::CONTENT_ALERT_NUMBER_ALLOWANCE )
                         ->count() ?? null;
Run Code Online (Sandbox Code Playgroud)

Ale*_*nin 10

用途like:

->where('post_type', 'like', '%'.$string.'%')
Run Code Online (Sandbox Code Playgroud)