2 years ago

Return completed Tasks from a channel

Posted 2 years ago by kordix

I can't combine two options - to return tasks from a channel and meantime these wchich are not completed.

I can easily use one of two options, but I can't combine them.

In controller I can use Task::where('completed', 0) , but how can I use it on this: $tasks = $channel->tasks()->latest(); ?

I think its trivial problem but I can't find solution even in google.

Please sign in or create an account to participate in this conversation.