Answers for "count(): argument #1 ($value) must be of type countable|array, laravel 8"

PHP
6

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

//add a typecast array to the array being called
$count = count((array)$originalArray);
Posted by: Guest on May-06-2020

Code answers related to "count(): argument #1 ($value) must be of type countable|array, laravel 8"

Browse Popular Code Answers by Language