Answers for "Call to a member function count() on string"

0

Call to a member function count() on string

count($project->tasks)
Posted by: Guest on October-23-2020
0

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
Posted by: Guest on October-23-2020

Code answers related to "Call to a member function count() on string"

Browse Popular Code Answers by Language