Retrieve specific Tasks From Database

Posted 3 months ago by Kareimovich

Hi, Everybody, I need To retrieve Tasks That has (tasktag id > 1) But My Code returns all tasks With tasks but return the only tasktag that is id >1 i need to not return task i need not return Task and Tasktag when tasktag is <1

         $tasks = Path::with(array('pathtags.Tasks.tasktags' => function($query)
             $query->where('tag_id', '=',3);

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

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.