Retrieve specific Tasks From Database

Posted 8 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);
          }))
     ->first();

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

Reply to

Use Markdown with GitHub-flavored code blocks.