Skip to content

Instantly share code, notes, and snippets.

@leezee7
Created October 24, 2019 02:37
Show Gist options
  • Select an option

  • Save leezee7/5ba3971c16c71ca6335b6b8110320317 to your computer and use it in GitHub Desktop.

Select an option

Save leezee7/5ba3971c16c71ca6335b6b8110320317 to your computer and use it in GitHub Desktop.
try {
DB::beginTransaction();
DB::commit();
} catch (Exception $e) {
Log::error($e->getMessage());
DB::rollBack();
throw new ExceptionBiz($e->getMessage());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment