LL233
0
Q:

Call to a member function count() on string

h2>{{{ $project->name }}}</h2>

@if ( count($project->tasks)==0)
    There are no tasks for this project.
@else
    <ul>
        @foreach( $project->tasks as $task)
            <li><a href="{{ route('projects.tasks.show', [$project->slug, $task->slug]) }}">{{ $task->name }}</a></li>
        @endforeach
    </ul>
@endif
0
count($project->tasks)
0

New to Communities?

Join the community