Skip to content
Advertisement

Laravel Join If Column Value Not Null

JavaScript

I try this method. I want to select discount if withCode value False. I try in where clause but in this method, if not false; I can’t access product. I want to select discount if withCode table FALSE. Else, I don’t want to select it

Advertisement

Answer

I solved with this codes;

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement