nicolaslopezj / searchable

A php trait to search laravel models
MIT License
2.01k stars 291 forks source link

A non-numeric value encountered #221

Open lperry65 opened 4 years ago

lperry65 commented 4 years ago

Using Model::search($query, null, true, true)->get();

I get this response:

{ "errors": { "message": "A non-numeric value encountered:/var/www/html/vendor/nicolaslopezj/searchable/src/SearchableTrait.php:63", "error_code": "UNKNOWN" } }

Is this because the Primary key is not an integer, this is an existing application which uses a Uuid