Error-In Laravel

Posted by

Count(): parameter must be an array or an object that implements countable:

Solution:-

put on top side in web.php

use Illuminate\Http\Request;

if(version_compare(PHP_VERSION, ‘7.2.0’, ‘>=’)) {

    error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);

}

And also put other microservice

use Illuminate\Http\Request;

if(version_compare(PHP_VERSION, ‘7.2.0’, ‘>=’)) {

    error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);

}

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x