$places = Place::whereIn('id', $result)
->where('active', '=', true)
->Join('regions', 'places.region_id', '=', 'regions.id')
->orderBy('rating')
->paginate(10);
$places = Place::whereIn('places.id', $result)
->where('places.active', '=', true)
->Join('regions', 'places.region_id', '=', 'regions.id')
->orderBy('places.rating')
->select(['places.*'])
->paginate(10);