Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Inf and NaN cannot be JSON encoded #118

Open
safiullahsarhandi opened this issue Feb 13, 2021 · 1 comment
Open

Inf and NaN cannot be JSON encoded #118

safiullahsarhandi opened this issue Feb 13, 2021 · 1 comment

Comments

@safiullahsarhandi
Copy link

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
Copy link
Author

made it worked like this

$results = Application::search(request('q'))->get()->map(function($item){ unset($item['relevance']); return $item; });

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant