2
I’m having difficulty in an sql in the Laravel where I make a Join, but the error really happens is in the where, where the deleted_at is equal to null, recalling that the deleted_at is a timestamp. The database is running sql, but the database is not. What is missing? I am using the postgres database.
Follow the error screenshot:

puts the code you are using so we can help you more, another question you used the manual query to test ?
– Otto
Eduardo, post the code of your model and, if used, the Migrations of your table.
– gmsantos
opa galera vlw by help more I already solved the problem I didn’t know there was a function "whereNull()" to do this more thanks for the help
– Eduardo Lopes
Eduardo put as answer it is very good to have these mistakes and how to solve them.
– Maria