Skip to content
Advertisement

Laravel – query to select with “with” and “where” clause

I have the following:

JavaScript

my question is the following: how can I make the where statement on the interviews column? if I don’t pass the where statement, works. But I need to get only the data where the date is equal to my param of the function.

The error it returns me:

JavaScript

Thanks in advance!

Advertisement

Answer

you can pass callaback function like that

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