', '2020-08-01') ->whereHas('stato', fn ($query) => $query->whereNotIn('descrizione', ['Bozza', 'Annullata'])) ->get(); foreach ($fatture as $fattura) { $gestore = new GestoreMovimenti($fattura); $gestore->registra(); } // Completamento automatico informazioni IBAN per banche $banche = Banca::all(); foreach ($banche as $banca) { try { $banca->save(); } catch (Exception $e) { } }