I need to convert this query form PostgreSQL in Eloquent but I failed:
select invoice_item_id from ( select invoice_item_id, status, row_n