From 39677d6b5f7c0635415fcc6ea48eaceb11099fcd Mon Sep 17 00:00:00 2001 From: br0kenpixel <23280129+br0kenpixel@users.noreply.github.com> Date: Tue, 4 Nov 2025 13:33:17 +0100 Subject: [PATCH] fix: correct transaction method call in user registration process --- backend/app/Http/Controllers/Auth/RegisteredUserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/Http/Controllers/Auth/RegisteredUserController.php b/backend/app/Http/Controllers/Auth/RegisteredUserController.php index 0e44cc2..00d2649 100644 --- a/backend/app/Http/Controllers/Auth/RegisteredUserController.php +++ b/backend/app/Http/Controllers/Auth/RegisteredUserController.php @@ -47,7 +47,7 @@ class RegisteredUserController extends Controller 'company_data.hiring' => ['required_if:role,EMPLOYER', 'boolean'], ]); - DB::createTransaction(); + DB::beginTransaction(); try { $user = User::create([