I am working on a project where I have a table market which has a buyer_id column and a seller_id column. When a seller puts something on the market, the seller_id and buyer_id
Option 1: ->whereRaw('column1 = column2')
->whereRaw('column1 = column2')
Option 2: When on sale buyer_id == null != seller_id, ->where('buyer_id', '=', null)
->where('buyer_id', '=', null)