Event::whereHas('participants', function ($query) { return $query->where('IDUser', '=', 1); })->get();