vendredi 19 janvier 2018

count(): Parameter must be an array or an object that implements Countable

I'm facing strange case. I face an error in production env not while in dev it's working fine.

Development: Laravel 5.4.28 PHP 7.0.13 MYSQL 5.7.17

Production: Laravel 5.4.28 PHP 7.2.1 MYSQL 5.7.20

In implementation code. I used: use Laravel\Scout\Searchable;

In development it works fine. But in production it gives me this error: count(): Parameter must be an array or an object that implements Countable in Builder.php (line 936)

Any idea what is the reason behind this? and how to fix?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2Befves
via IFTTT

Aucun commentaire:

Enregistrer un commentaire