I'm having a problem while accessing a column in the laravel query builder, the following code works in the Sql Workbench.
Vendas::selectRaw('if(faturamento.Codfaturamento is null, vendas.totalvenda, faturamento.valor) AS vlrFatura')
-...
asked by
03.10.2018 / 21:54