function findListingAvailabilityBTWNDates(startDate,endDate,listingID){  
return db('reservation')
.where("listing_id",listingID)
.whereBetween('date',[startDate,endDate])

}
//find specific listing availability between two dates
find specific listing availability between two dates
find specific listing availability between two dates
function findListingAvailabilityBTWNDates(startDate,endDate,listingID){  
return db('reservation')
.where("listing_id",listingID)
.whereBetween('date',[startDate,endDate])
}
function findListingAvailabilityBTWNDates ( startDate , endDate , listingID ) { return db ( 'reservation' ) . where ( "listing_id" , listingID ) . whereBetween ( 'date' , [ startDate , endDate ] ) }
find specific listing availability between two dates
find specific listing availability between two dates