', '2020-08-01') ->whereHas('stato', function ($query) { return $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) { } }