thing}`; } catch (\Exception $e) { report($e); $errors[] = 'Something went wrong'; } } if (count($errors) > 0) { return redirect()->route('manufacturers.index')->with('error', implode(', ', $errors)); } else { return redirect()->route('manufacturers.index')->with('success', trans('admin/suppliers/message.delete.success')); } } }