Problem with a query when comparing dates in Laravel based project
I’m working on apartments rental project. As a part of the applications abilities there is a functionality for an apartments owner to select days that the apartment is available for rental by guests. I’m writing a search query to get apartments where it checks amongst other things for days available for rental. I have following tables: rooms, bookings, days, day_room (pivot table). Since I’m new here please let me know if I need to post anything else for you to get a better understanding of my problem.