Call to a member function count() on a non-object (Laravel 5)
$project->tasks
is an array and you cant call count()
on the array. So try with -
count($project->tasks)
$project->tasks
is an array and you cant call count()
on the array. So try with -
count($project->tasks)