Package made for XLR8 with PHP 8 and Laravel.
- Latitude and Longitude by parameters
- Order by price by night and proximity
composer require raphaborralho/search
php artisan vendor:publish
Edit and add multiple sources of data in array
#config/search.php
return [
//Array with multiples source
'source' => [
//'https://xlr8-interview-files.s3.eu-west-2.amazonaws.com/source_1.json',
//'https://xlr8-interview-files.s3.eu-west-2.amazonaws.com/source_2.json',
]
];
In Controller:
use Raphaborralho\Search\Search;
In function:
Search::getNearbyHotels($latitude, $longitude, $orderby)
MIT