count() parameter must be an array or an object that implements countable laravel

Posted by w3diy - 4 months ago

count() parameter must be an array or an object that implements countable laravel

/Update this bellow source code at the beginning your main routes file its will work fine.

if(version_compare(PHP_VERSION, '7.2.0', '>=')) {
    error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
}