关于 Laravel5.8 子查询的问题

我用的 laravel5.8 子查询出现报错,请问是什么原因?

$ads = DB::table('ub_ads')->selectRaw("coverimage, is_publish, type,
            merchant_id, title, content, remarks, url, created_at, updated_at")
            ->where('position', 'merchant-info')->get();
$result = DB::table('ub_merchants as m')
            ->joinSub($ads, 'ads', function (Builder $join) {
            $join->on('m.id', '=', 'ads.merchant_id');
        })->get();
        dd($result);

报错信息如下:

chapin
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。