Skip to main content

Code Examples of database transactions

Discover how to use Laravel's database transactions method in real-world applications. Browse 9 examples from popular open-source projects.

9 examples

akaunting/akaunting

  • 9876
  • Created Sep 2017
  • Updated Jun 2026

Files in this example

  • app/BulkActions/Banking/Reconciliations.php
View full example

pterodactyl/panel

  • 8951
  • Created Dec 2016
  • Updated Jun 2026

Files in this example

  • app/Http/Controllers/Api/Remote/Servers/ServerTransferController.php
View full example

pixelfed/pixelfed

  • 7003
  • Created Apr 2018
  • Updated Jun 2026

Files in this example

  • app/Jobs/DeletePipeline/DeleteRemoteProfilePipeline.php
View full example

realodix/urlhub

  • 537
  • Created Aug 2018
  • Updated May 2026

Files in this example

  • app/Http/Controllers/UrlRedirectController.php
View full example

luadotsh/lua

  • 333
  • Created Oct 2024
  • Updated Apr 2026

Files in this example

  • app/Http/Controllers/MediaController.php
View full example

themsaid/ergodnc

  • 259
  • Created Sep 2021
  • Updated Dec 2023

Files in this example

  • app/Http/Controllers/OfficeController.php
View full example

amitavroy/doctor-app

  • 41
  • Created Sep 2021
  • Updated Jan 2022

Files in this example

  • app/Services/PatientService.php
View full example

devhub-az/devhub

  • 24
  • Created Dec 2019
  • Updated Jul 2022

Files in this example

  • app/Http/Controllers/Api/ArticleController.php
View full example

JuanDMeGon/Laravel-from-Scratch

  • 18
  • Created Apr 2020
  • Updated Mar 2021

Files in this example

  • app/Http/Controllers/OrderController.php
View full example