Guest User

Untitled

a guest
Oct 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $posts2 = Path::with(['pathtags' => function ($q) use ($TagArray) {
  2. $q->with(['Tasks'=>function($q) use ($TagArray) {
  3. $q->has('tasktags', '=' , 2)->whereHas('tasktags', function ($query) use ($TagArray) {
  4. $TaskTags[] = $query->name;
  5. })->with('tasktags');
  6. }]);
  7. }])->first();
Add Comment
Please, Sign In to add comment