You can do it in this way:
$records = DB::table('a_tbl')
->join('b_tbl', 'a_tbl.id', '=', 'b_tbl.id')
->select('a_tbl.col as a_col', 'b_tbl.col as b_col')
->get();
Also you can read about laravel docs for this:
https://laravel.com/docs/8.x/queries#joins
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…