0👍
In your SearchController
method, simply change this:
return json_encode($searchResults);
with this:
return response()->json($searchResults);
Source:stackexchange.com
0👍
In your SearchController
method, simply change this:
return json_encode($searchResults);
with this:
return response()->json($searchResults);