Requête Eloquent personnalisée
Écrivez votre requête User:: (sans ->get() à la fin).
Ex :
User::whereExists(function ($query) {
$query->select(DB::raw(1))
->from('participants')
->whereColumn('participants.user_id', 'users.id')
->where('participants.event_id', 47);
})
Destinataires estimés : --