You can get it doing:
$query = DB::table('brands')
->join('products','a','=','c')
->whereNull('whatever');
echo $query->toSql();
But Laravel will not show you parameters in your query, because they are bound after preparation of the query.
So you can also do:
print_r( $query->getBindings() );
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…