Skip to content
Advertisement

empty data in Laravel query

my response always empty !

if I run only one (where) separated in the Query I get data

but

if I run all three ( where ) Its empty !

JavaScript

my output

JavaScript

Advertisement

Answer

Change your controller code to something like this

JavaScript

And if there’s an OR condition between branch and type then change your code like this

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