I want to use the array $aqui inside where clause, but I don't know how to do it. I know how to put multiple values inside where clause, but I don't know about arrays.
$aqui[1] = 35;
$aqui[2] = 67;
$aqui[3] = 44;
$aqui[4] = 12;
$aqui[5] = 9;
//and goes...
$caraio = DB::connection('mysql')
->table('users')
->select('name')
->where( /* where fields are equal to $aqui */ )
->value('name');
->whereIn('aqui', $aqui)? (guessing here that the attribute you want to filter by is calledaquias well - if not, adjust accordingly