I need to get a parameter passed in the url. Ex: lugar.php?city=São Paulo
.
I need to get to São Paulo.
I tried but it is not working, with the code below:
$data['items'] = $results['query']
->where('city',Request::query('city'))
->orderBy('views','desc')
->get()
->toArray();