Log import errors

This commit is contained in:
boracakirel 2023-03-03 22:10:56 +03:00
parent fdf5526810
commit c461129eb3

View File

@ -51,6 +51,7 @@ class Import
'message' => $message,
];
} catch (Throwable $e) {
report($e);
if ($e instanceof ValidationException) {
foreach ($e->failures() as $failure) {
$message = trans('messages.error.import_column', [