You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migliorata la stampa dell'errore in caso di validazione errata con tutti gli attributi del model prima faceva tante entry nel log adesso un unica entry che con sistemi tipo logViewer si legge meglio e se mandiamo ad un servizio in cloud conta una sola request anzichè n request.
Copy file name to clipboardexpand all lines: src/Validable.php
+8-7
Original file line number
Diff line number
Diff line change
@@ -68,17 +68,18 @@ public function validate()
68
68
$this->setErrors($v->messages());
69
69
70
70
if (config('laravel-validable.debug')) {
71
-
Log::debug('Errore durante la validazione del model \'' . $this->getTable() . '\' in \'' . ($this->id > 0 ? 'update' : 'create') . '\' lanciato su evento saving del model.');
72
-
Log::debug('Attributi del model:');
73
-
Log::debug($this->toJson(JSON_PRETTY_PRINT));
74
-
Log::debug('Errori di validazione:');
75
-
Log::debug($this->getErrors());
76
-
Log::debug('StackTrace:'.PHP_EOL);
71
+
$msg = 'Errore durante la validazione del model \'' . $this->getTable() . '\' in \'' . ($this->id > 0 ? 'update' : 'create') . '\' lanciato su evento saving del model.';
0 commit comments