Sory for the long question but I just want you to get the concept. I will appreciate your help.
Am using laravel 5.2 to develop a website. I have 2 table (Menu and Hotels) which have columns (Menu =>
Price) & for Hotels (
HotelName …` Services’.) I have a form where the user enters what he/she wants in a hotel. e.g. doughnut, $10 (should be queried from table mene). The user may also put other services such as Available parking, wi-fi, currency exchange etc which should be selected from table Hotels column services. The results should be ranked and the output should be the name of the Hotels. The hotels should be ranked according to how they match user’s input. i.e. the hotel that have exact match will be ranked first, the nearest match will be second and so on. The services to be selected by the user are in form of checkbox, so the user selects what he/she wants. I then store them in one row inform of json.
The challenge am facing is to combine the two queries i.e. from menu table and Hotel table, and then rank the results. Guys, I will highly appreciate your help on how I can do this queries.