Inf and NaN cannot be JSON encoded
safiullahsarhandi opened this issue · 1 comments
safiullahsarhandi commented
Hello this issue im facing while searching on json column
relevance is returning INF may be this is an issue. any solution would be appreciated.
safiullahsarhandi commented
made it worked like this
$results = Application::search(request('q'))->get()->map(function($item){ unset($item['relevance']); return $item; });