Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $posts2 = Path::with(['pathtags' => function ($q) use ($TagArray) {
- $q->with(['Tasks'=>function($q) use ($TagArray) {
- $q->has('tasktags', '=' , 2)->whereHas('tasktags', function ($query) use ($TagArray) {
- $TaskTags[] = $query->name;
- })->with('tasktags');
- }]);
- }])->first();
Add Comment
Please, Sign In to add comment