0
加入我有一個像複雜查詢在laravel
SELECT a.id, a.code, b.id as bid FROM a LEFT JOIN b ON a.code BETWEEN b.start AND b.end
現在我怎樣才能將它轉換爲laravel雄辯查詢的查詢?
我試過了嗎?
A::leftJoin('b', function($j){
$j->on() //here I face complexity. How I implement it
})