Skip to content

Instantly share code, notes, and snippets.

@vocolboy
Created March 14, 2016 03:20
Show Gist options
  • Save vocolboy/454db577a593fd575779 to your computer and use it in GitHub Desktop.
Save vocolboy/454db577a593fd575779 to your computer and use it in GitHub Desktop.
try {
DB::connection('pgsql')->getPdo()->beginTransaction();
DB::connection('pgsql')->getPdo()->commit();
} catch (\PDOException $e) {
DB::connection('pgsql')->getPdo()->rollBack();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment