0

Im creating an autocomplete feature that my users can search for strings that starts with '#' but Im getting the following behaviour:

Controller

public function autocomplete(Request $request, TermoBuscaService $service)
{
    dd($request->input('term'));
}

Input

It Works

[GET] /autocomplete?term=music

Output

music

Input

Doesnt works

[GET] /autocomplete?term=#music

Output

null

Does laravel have some sort of sanitize that removes hashtags?

William Martins
  • 357
  • 2
  • 14

0 Answers0