我有这个原始查询,我想转换为雄辩查询 我是laravel雄辩的新手,所以我无法翻译这种复杂的查询。 有人可以为我翻译。
select * from tbl_assets
left join tbl_asset_validations on (tbl_assets.id = tbl_asset_validations.asset_id
and (tbl_asset_validations.assetType is null or tbl_asset_validations.assetType = '' or tbl_asset_validations.assetType = 'IT')
and (tbl_asset_validations.year is null or tbl_asset_validations.year = '' or tbl_asset_validations.year = '2015') )
where (tbl_asset_validations.validation is null or tbl_asset_validations.validation = '' or tbl_asset_validations.validation = 'Not yet validated')
由于