I’m trying to use this http://api.jqueryui.com/autocomplete/#option-source with Laravel and so I need to send a GET request to a url which ends with “?term=foo”. I’ve tried to escape the “?” with a backslash, which doesn’t work. To clarify, this is what I want:
Route::get('search\?term=(:any)', function()
{
//do something
}
Is it possible to have questionmarks in the url with Laravel?
Having a question mark in the URL should make no difference. You’re using a PHP framework, and simply speaking,
...?term=parametersshould not be problematic. To my knowledge, there should be no need to escape such a question mark… It is handled appropriately by default.