I have my table with rentals
id| user_id| car_id | starting_date | ending_date
and here is cars table
id | name
I don't know how to habndle the situation.. I have N cars, and I want to return only available cars for specific dates.
For example I want to rent a car on this period:
20.02.2018 - 23.02.2018
But I don't know how to check every case to see if a car is available in that period using Laravel.
© 2016 Powered by mzan.com design MATCHINFO