[Solved] My Php Script Exception message: count(): Parameter must be an array or an object that implements Countable


The $user variable isn’t an array. If that variable must not be an array remove the count function from if statement.

In php5, php7.0, php7.1 it works, but in php7.2 does not work.

@if($user)...

0

solved My Php Script Exception message: count(): Parameter must be an array or an object that implements Countable