O PHP 7.4 permite que você escape do espaço reservado com
??
:https://wiki.php.net/rfc/pdo_escape_placeholders
DB::table('table_name')->whereRaw('jsonb_column ?? ?', ['key'])->get();
??
:https://wiki.php.net/rfc/pdo_escape_placeholders
DB::table('table_name')->whereRaw('jsonb_column ?? ?', ['key'])->get();