you are missing the get method; try this:
$tasks = $project->tasks()->where('is_closed', $closed)->get();
$tasks = Task::where('is_closed', $closed)->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community